Skip to content

Commit

Permalink
add Github Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joergen7 committed Feb 6, 2025
1 parent 4c0b05b commit fdc92d6
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
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

0 comments on commit fdc92d6

Please sign in to comment.