Skip to content

Commit

Permalink
Only run Test Report CI step on pushes to main
Browse files Browse the repository at this point in the history
The test-reporter GitHub action doesn't work for public repos
  • Loading branch information
AndrewDryga committed May 21, 2024
1 parent ef41645 commit 3605b4c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@ jobs:
MIX_ENV: test
run: mix test --exclude pending
- name: Test Report
env:
MIX_ENV: test
uses: dorny/test-reporter@v1
if: success() || failure()
if: (success() || failure()) && github.event_name == 'push'
with:
name: Mix Tests on Elixir ${{ matrix.elixir-version }} / OTP ${{ matrix.otp-version }}
path: _build/test/lib/logger_json/test-junit-report.xml
Expand Down

0 comments on commit 3605b4c

Please sign in to comment.