Skip to content

Commit cd902b5

Browse files
Merge pull request #386 from saleor/setup-codecov
2 parents 01b28d4 + b713164 commit cd902b5

File tree

5 files changed

+1028
-767
lines changed

5 files changed

+1028
-767
lines changed

.github/workflows/main.yml

+7-12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
types:
55
- synchronize
66
- opened
7+
push:
8+
branches:
9+
- main
710

811
jobs:
912
lint:
@@ -45,19 +48,11 @@ jobs:
4548
run: pnpm install --frozen-lockfile
4649
- name: Run tests
4750
run: pnpm test:ci
48-
- name: Generate coverage report
49-
uses: irongut/CodeCoverageSummary@51cc3a756ddcd398d447c044c02cb6aa83fdae95 # v1.3.0
50-
if: ${{ github.actor != 'dependabot[bot]' }}
51+
- name: Upload coverage reports to Codecov
52+
uses: codecov/codecov-action@0da7aa657d958d32c117fc47e1f977e7524753c7 # v5.3.0
5153
with:
52-
filename: coverage/cobertura-coverage.xml
53-
format: markdown
54-
output: file
55-
- name: Add Coverage PR Comment
56-
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2.9.0
57-
if: ${{ github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' }}
58-
with:
59-
recreate: true
60-
path: code-coverage-results.md
54+
token: ${{ secrets.CODECOV_TOKEN }}
55+
slug: saleor/app-sdk
6156

6257
build:
6358
runs-on: ubuntu-22.04

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"@typescript-eslint/eslint-plugin": "^5.36.1",
5151
"@typescript-eslint/parser": "^5.36.1",
5252
"@vercel/kv": "1.0.0",
53-
"@vitejs/plugin-react": "^3.0.1",
54-
"@vitest/coverage-c8": "^0.27.2",
53+
"@vitejs/plugin-react": "4.3.4",
54+
"@vitest/coverage-v8": "3.0.4",
5555
"clean-publish": "^4.0.1",
5656
"eslint": "8.23.0",
5757
"eslint-config-airbnb": "^19.0.4",
@@ -77,8 +77,8 @@
7777
"tsup": "^6.2.3",
7878
"typescript": "4.9.5",
7979
"vi-fetch": "^0.8.0",
80-
"vite": "^4.0.4",
81-
"vitest": "^0.28.1"
80+
"vite": "6.0.11 ",
81+
"vitest": "3.0.4"
8282
},
8383
"peerDependenciesMeta": {
8484
"@vercel/kv": {

0 commit comments

Comments
 (0)