-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
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: ['26.0', '27.0'] | ||
os: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: ${{matrix.otp}} | ||
rebar3-version: '3.24.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: '27.0' | ||
rebar3-version: '3.24.0' | ||
- run: rebar3 eunit | ||
- run: rebar3 cover | ||
- run: rebar3 covertool generate | ||
- run: cp _build/test/covertool/cuneiform.covertool.xml ./cobertura.xml | ||
- run: sudo pip install codecov | ||
- run: codecov |