Skip to content

Commit 0536ad5

Browse files
committed
Tweak CI
1 parent f6453fe commit 0536ad5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/coverage.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
runs-on: ubuntu-latest
4848

4949
permissions:
50+
id-token: write
5051
contents: read
5152

5253
steps:
@@ -56,7 +57,7 @@ jobs:
5657
- name: Install Node
5758
uses: actions/[email protected]
5859
with:
59-
node-version: 18
60+
node-version: 20
6061

6162
- name: Install Node dependencies
6263
working-directory: ./frontend
@@ -69,6 +70,8 @@ jobs:
6970
- name: Test
7071
working-directory: ./frontend
7172
run: npm run coverage
73+
env:
74+
UPLOAD_CODECOV_BUNDLE: true
7275

7376
- name: Upload to codecov.io
7477
uses: codecov/[email protected]
@@ -116,7 +119,7 @@ jobs:
116119
- name: Install Node
117120
uses: actions/[email protected]
118121
with:
119-
node-version: 18
122+
node-version: 20
120123

121124
- name: Install Node dependencies
122125
working-directory: ./frontend

frontend/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default defineConfig((env) => ({
7171
tanStackRouter(),
7272

7373
codecovVitePlugin({
74-
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
74+
enableBundleAnalysis: process.env.UPLOAD_CODECOV_BUNDLE === "true",
7575
bundleName: "mas-frontend",
7676
gitService: "github",
7777
oidc: {

0 commit comments

Comments
 (0)