File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ concurrency:
14
14
jobs :
15
15
test :
16
16
runs-on : ubuntu-latest
17
- environment :
18
- name : github-pages
19
- url : ${{ steps.deployment.outputs.page_url }}
20
17
steps :
21
18
- uses : actions/checkout@v4
22
19
- uses : oven-sh/setup-bun@v1
@@ -26,11 +23,29 @@ jobs:
26
23
run : bun run build
27
24
- name : Run vitest
28
25
run : bun run coverage
26
+ - name : Upload coverage artifact
27
+ uses : actions/upload-artifact@v4
28
+ with :
29
+ name : coverage-report
30
+ path : coverage
31
+
32
+ deploy :
33
+ runs-on : ubuntu-latest
34
+ needs : test
35
+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
36
+ environment :
37
+ name : github-pages
38
+ url : ${{ steps.deployment.outputs.page_url }}
39
+ steps :
40
+ - name : Download coverage artifact
41
+ uses : actions/download-artifact@v4
42
+ with :
43
+ name : coverage-report
44
+ path : coverage
29
45
- uses : actions/configure-pages@v4
30
46
- uses : actions/upload-pages-artifact@v3
31
47
with :
32
48
path : coverage
33
49
- name : Deploy to GitHub Pages
34
- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
35
50
id : deployment
36
51
uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments