diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..998e306 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI + +on: + push: + workflow_dispatch: + +jobs: + test_till_otp_22: + name: Run tests on OTP ${{matrix.otp}} + strategy: + matrix: + otp: [21.3] + fail-fast: false + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: erlef/setup-beam@v1 + with: + otp-version: ${{ matrix.otp }} + rebar3-version: '3.15.2' + - run: rebar3 compile + - run: rebar3 xref + - run: rebar3 dialyzer + - run: rebar3 eunit + - run: rebar3 ct + + test_till_otp_24: + name: Run tests on OTP ${{matrix.otp}} + strategy: + matrix: + otp: [22.3, 23.3, 24.1] + fail-fast: false + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: erlef/setup-beam@v1 + with: + otp-version: ${{ matrix.otp }} + rebar3-version: '3.17' + - run: rebar3 compile + - run: rebar3 xref + - run: rebar3 dialyzer + - run: rebar3 eunit + - run: rebar3 ct diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 90e9ef0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -sudo: false -language: erlang -script: - - wget -c https://github.com/erlang/rebar3/releases/download/3.12.0/rebar3 - - chmod +x rebar3 - - REBAR3=./rebar3 make ci -otp_release: - - 24.0.5 - - 23.2.7 - - 22.1 - - 21.3 - - 20.3 -after_failure: "echo 'logs/raw.log\n'; cat logs/raw.log; for f in `find logs/ct_run*/log*/ -type f`; do echo \"\n$f\n\" ; cat $f; done"