From 3605b4cd8178f70219cfaa5ca9956577bd1e1de1 Mon Sep 17 00:00:00 2001 From: Andrew Dryga Date: Tue, 21 May 2024 11:01:25 -0600 Subject: [PATCH] Only run Test Report CI step on pushes to main The test-reporter GitHub action doesn't work for public repos --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13972d5..88d1318 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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