mirror of
https://github.com/valitydev/jesse.git
synced 2024-11-06 09:35:23 +00:00
68 lines
1.4 KiB
YAML
68 lines
1.4 KiB
YAML
---
|
|
name: CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- github*
|
|
- master
|
|
tags:
|
|
- '*'
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
schedule:
|
|
- cron: 0 0 * * *
|
|
jobs:
|
|
ci:
|
|
timeout-minutes: 30
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
otp_vsn:
|
|
- '19'
|
|
- '19.1'
|
|
- '19.2'
|
|
- '19.3'
|
|
- '20'
|
|
- '20.1'
|
|
- '20.2'
|
|
- '20.3'
|
|
- '21'
|
|
- '21.1'
|
|
- '21.2'
|
|
- '21.3'
|
|
- '22'
|
|
- '22.1'
|
|
- '22.2'
|
|
- '22.3'
|
|
- '23'
|
|
- '23.1'
|
|
name: 'ci-erl:${{ matrix.otp_vsn }}'
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: 'erlang:${{ matrix.otp_vsn }}'
|
|
env:
|
|
LATEST_OTP_RELEASE: 23.1
|
|
steps:
|
|
- shell: bash
|
|
run: |
|
|
apt-get update
|
|
apt-get -y install tcl tcl-dev gettext
|
|
cd /usr/src/
|
|
wget https://github.com/git/git/archive/v2.18.0.tar.gz -O git.tar.gz
|
|
tar -xf git.tar.gz
|
|
cd git-*
|
|
make prefix=/usr/local all
|
|
make prefix=/usr/local install
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- shell: bash
|
|
run: |
|
|
# run linter and docs if latest otp release
|
|
[[ "${{ matrix.otp_vsn }}" != "${{ env.LATEST_OTP_RELEASE }}" ]] || make elvis docs
|
|
- shell: bash
|
|
run: make
|
|
- shell: bash
|
|
run: make test
|