mirror of https://github.com/processone/mqtree

6 changed files with 83 additions and 32 deletions
@ -0,0 +1,44 @@
|
||||
name: CI |
||||
|
||||
on: [push, pull_request] |
||||
|
||||
jobs: |
||||
|
||||
tests: |
||||
name: Tests |
||||
strategy: |
||||
fail-fast: false |
||||
matrix: |
||||
otp: ['19.3', '22.3', 24] |
||||
runs-on: ubuntu-20.04 |
||||
container: |
||||
image: erlang:${{ matrix.otp }} |
||||
|
||||
steps: |
||||
|
||||
- uses: actions/checkout@v2 |
||||
|
||||
- name: Cache rebar3 |
||||
uses: actions/cache@v2 |
||||
with: |
||||
path: | |
||||
~/.cache/rebar3/ |
||||
key: ${{matrix.otp}}-${{hashFiles('rebar.config')}} |
||||
|
||||
- run: rebar3 compile |
||||
- run: rebar3 xref |
||||
- run: rebar3 dialyzer |
||||
- run: rebar3 eunit -v |
||||
|
||||
- name: Send to Coveralls |
||||
if: matrix.otp == 24 |
||||
env: |
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||
run: | |
||||
COVERALLS=true rebar3 as test coveralls send |
||||
curl -v -k https://coveralls.io/webhook \ |
||||
--header "Content-Type: application/json" \ |
||||
--data '{"repo_name":"$GITHUB_REPOSITORY", |
||||
"repo_token":"$GITHUB_TOKEN", |
||||
"payload":{"build_num":$GITHUB_RUN_ID, |
||||
"status":"done"}}' |
@ -1,19 +0,0 @@
|
||||
language: erlang |
||||
|
||||
os: linux |
||||
|
||||
dist: xenial |
||||
|
||||
before_install: |
||||
- pip install --user cpp-coveralls coveralls-merge |
||||
|
||||
script: make && make xref && make test |
||||
|
||||
after_success: |
||||
- cpp-coveralls --exclude lib --exclude tests --gcov-options '\-lp' --dump c.json |
||||
- coveralls-merge c.json erlang.json |
||||
|
||||
otp_release: |
||||
- 19.3 |
||||
- 22.3 |
||||
- 23.0 |
Loading…
Reference in new issue