Merge pull request #81 from sile/fix-json-utf8-encoding-bug #71
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 checks and tests over ${{matrix.otp}} and ${{matrix.os}} | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
otp: ['24.0', '25.0', '26.0'] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
rebar3-version: '3.20.0' | |
- run: rebar3 compile | |
- run: rebar3 xref | |
- run: rebar3 efmt -c | |
- run: rebar3 eunit | |
- run: rebar3 dialyzer | |
- run: rebar3 edoc | |
cov: | |
needs: ci | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: '25.0' | |
rebar3-version: '3.20.0' | |
- run: rebar3 eunit | |
- run: rebar3 cover | |
- run: rebar3 covertool generate | |
- run: cp _build/test/covertool/jsone.covertool.xml ./cobertura.xml | |
- run: sudo pip install codecov | |
- run: codecov |