Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Logicer16 committed Nov 23, 2024
1 parent 7233595 commit 4a4bfbe
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a4bfbe

Please sign in to comment.