Skip to content

ci: coverall only when success #339

ci: coverall only when success

ci: coverall only when success #339

Workflow file for this run

name: Run test case
on: [push, pull_request]
jobs:
run_test_case:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
otp:
- erlang:26
- erlang:25
- erlang:24
container:
image: ${{ matrix.otp }}
steps:
- uses: actions/checkout@v1
- name: Code dialyzer
run: |
make xref
make dialyzer
- name: Run tests
run: |
make eunit
make ct
make cover
- name: Coveralls
if: ${{ success() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
make coveralls
- uses: actions/upload-artifact@v1
if: failure()
with:
name: logs
path: _build/test/logs