diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 81aef5b..c098c3f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ on: env: report: ${{ github.event_name != 'workflow_call' || inputs.report }} - dependabot: ${{ github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]' }} + notDependabot: ${{ github.event_name != 'pull_request' && github.event.pull_request.user.login != 'dependabot[bot]' }} jobs: Prepare: @@ -37,6 +37,12 @@ jobs: skip_after_successful_duplicate: "true" do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]' + - run: | + echo ${{ env.report && env.notDependabot }} + echo ${{ env.report }} + echo ${{ env.notDependabot }} + echo ${{ !env.notDependabot }} + Style: runs-on: ubuntu-latest @@ -119,14 +125,14 @@ jobs: run: pnpm run test:ci --coverage --reporter junit --outputFile ./coverage/junit.xml - name: Upload coverage to Codecov - if: ${{ env.report && !env.dependabot }} + if: ${{ env.report && env.notDependabot }} 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.dependabot }} + if: ${{ !cancelled() && env.report && env.notDependabot }} uses: codecov/test-results-action@v1 with: fail_ci_if_error: true