Skip to content

Commit 26b9ddc

Browse files
fix: add conditional artifacts
1 parent 11e0395 commit 26b9ddc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/frontend-test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: frontend-tests-and-coverage
2+
23
on:
34
push:
45
branches:
@@ -7,6 +8,7 @@ on:
78
branches:
89
- "main"
910
- "dev"
11+
1012
jobs:
1113
test-and-coverage:
1214
runs-on: ubuntu-latest
@@ -27,8 +29,9 @@ jobs:
2729
working-directory: frontend
2830

2931
- name: Save coverage Artifact for the Workflow
32+
if: >
33+
github.event_name == 'pull_request'
3034
uses: actions/upload-artifact@v4
31-
with:
35+
with:
3236
name: jest-coverage
3337
path: frontend/coverage
34-

0 commit comments

Comments
 (0)