Skip to content

Commit

Permalink
Only report coverage in one job
Browse files Browse the repository at this point in the history
  • Loading branch information
alisinabh committed May 12, 2024
1 parent 6c8e6b6 commit d203fae
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,28 @@ jobs:

strategy:
matrix:
otp: ['25.x', '26.x']
elixir: ['1.15', '1.16']
variation:
- otp: '26.x'
elixir: '1.16'
report_coverage: true
- otp: '26.x'
elixir: '1.15'
report_coverage: false
- otp: '25.x'
elixir: '1.16'
report_coverage: false
- otp: '25.x'
elixir: '1.15'
report_coverage: false

steps:
- uses: actions/checkout@v3

- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
otp-version: ${{matrix.variation.otp}}
elixir-version: ${{matrix.variation.elixir}}

- name: Install Solidity
run: |
Expand All @@ -63,9 +74,14 @@ jobs:
- name: Prepare for tests
run: elixir test/test_prepare.exs

- name: Run tests
- name: Run tests and report coverage
if: ${{matrix.variation.report_coverage}}
run: mix coveralls.github

- name: Run tests
if: ${{!matrix.variation.report_coverage}}
run: mix coveralls

- name: Credo
run: mix credo --strict

Expand Down

0 comments on commit d203fae

Please sign in to comment.