Merge pull request #576 from ryderside/master #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
ci: | |
name: > | |
Run Linux-based checks and tests over ${{matrix.otp_vsn}} and ${{matrix.os}} | |
runs-on: ${{matrix.os}} | |
container: | |
image: erlang:${{matrix.otp_vsn}} | |
options: --user 1001 | |
strategy: | |
matrix: | |
otp_vsn: [21.3, 22.3, 23.3, 24.0] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- run: rebar3 dialyzer | |
- run: rebar3 eunit | |
ci-windows: | |
name: > | |
Run Windows-based checks and tests over ${{matrix.otp_vsn}} and ${{matrix.os}} | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
otp_vsn: [23.2, 24] | |
os: [windows-latest] | |
rebar3_vsn: ['3.16'] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp_vsn}} | |
rebar3-version: ${{matrix.rebar3_vsn}} | |
- run: rebar3 dialyzer | |
- run: rebar3 eunit |