diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index af07ab1..b7afe10 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,6 +37,13 @@ jobs: skip_after_successful_duplicate: "true" do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]' + - run: | + echo ${{ github.event.pull_request.user.login }} + echo ${{ github.event_name != 'pull_request' && github.event.pull_request.user.login != 'dependabot[bot]' }} + echo ${{ github.event_name != 'pull_request'}} + echo ${{ github.event.pull_request.user.login != 'dependabot[bot]' }} + echo ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} + Style: runs-on: ubuntu-latest @@ -121,14 +128,14 @@ jobs: run: pnpm run test:ci --coverage --reporter junit --outputFile ./coverage/junit.xml - name: Upload coverage to Codecov - if: ${{ env.report && env.notDependabot }} + if: ${{ env.report && env.notDependabot == 'true' }} uses: codecov/codecov-action@v5 with: fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }} - name: Upload test results to Codecov - if: ${{ !cancelled() && env.report && env.notDependabot }} + if: ${{ !cancelled() && env.report && env.notDependabot == 'true' }} uses: codecov/test-results-action@v1 with: fail_ci_if_error: true