We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
codecov-action
v4
1 parent 8ceaa25 commit 9010481Copy full SHA for 9010481
.github/workflows/UploadCoverageReport.yml
@@ -8,6 +8,9 @@ name: UploadCoverageReport
8
- master
9
pull_request:
10
11
+env:
12
+ REPORT_PATH: "coverage/coverage-final.json"
13
+
14
jobs:
15
UploadCoverageReport:
16
runs-on: ubuntu-latest
@@ -25,9 +28,18 @@ jobs:
25
28
- name: Generate coverage report
26
29
run: npm test -- --coverage
27
30
- - name: Upload coverage to codecov
- uses: codecov/codecov-action@v3
31
+ - name: Upload coverage to codecov (tokenless)
32
+ if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
33
+ uses: codecov/codecov-action@v4
34
+ with:
35
+ files: "${{ env.REPORT_PATH }}"
36
+ fail_ci_if_error: true
37
38
+ - name: Upload coverage to codecov (with token)
39
+ if: "! github.event.pull_request.head.repo.fork "
40
41
with:
- files: "coverage/coverage-final.json"
42
+ token: ${{ secrets.CODECOV_TOKEN }}
43
44
fail_ci_if_error: true
45
...
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments