Skip to content

Commit 137b0fe

Browse files
committed
fix: coverage report upload
1 parent 6226566 commit 137b0fe

File tree

4 files changed

+108
-50
lines changed

4 files changed

+108
-50
lines changed

Diff for: .github/workflows/nodejs.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@ jobs:
3434
env:
3535
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
- name: Upload coverage report to Codecov.io
38-
uses: codecov/codecov-action@master
39-
with:
40-
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
41-
file: ./coverage/coverage-final.json # optional
42-
flags: pwa-tests # optional
43-
name: codecov-umbrella # optional
44-
fail_ci_if_error: true # optional (default = false)
4537
- name: Build PWA distribution for production
4638
run: |
4739
npm run build --if-present
@@ -52,5 +44,4 @@ jobs:
5244
env:
5345
GITHUB_TOKEN: ${{ secrets.GITHUB_PAT }}
5446
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
55-
- name: Semantic release flow completed
56-
run: echo Semantic release flow completed
47+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Diff for: .releaserc

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
["@semantic-release/github", {
2626
"assets": [
2727
]
28-
}],
28+
}],
29+
["@semantic-release/exec", {
30+
"publishCmd": "npm run codecov"
31+
}],
2932
]
3033
}

Diff for: package-lock.json

+100-38
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@
2020
"serve": "vue-cli-service serve",
2121
"build": "vue-cli-service build",
2222
"lint": "vue-cli-service lint",
23-
"test": "npx cypress run"
23+
"test": "npx cypress run",
24+
"codecov": "codecov -f coverage/coverage-final.json"
2425
},
2526
"funding": {
2627
"type": "github",
2728
"url": "https://github.com/sponsors/ambianic"
2829
},
2930
"dependencies": {
31+
"codecov": "^3.6.5",
3032
"compression-webpack-plugin": "^3.1.0",
3133
"idb": "^5.0.2",
3234
"konva": "^4.2.2",

0 commit comments

Comments
 (0)