File tree Expand file tree Collapse file tree 1 file changed +31
-25
lines changed
Expand file tree Collapse file tree 1 file changed +31
-25
lines changed Original file line number Diff line number Diff line change 2121 npm run lint
2222 '
2323
24- # Test the code
24+ # Build the dist
25+ check-build :
26+ name : " Check / Build"
27+ runs-on : ubuntu-latest
28+ container :
29+ image : ghcr.io/matrixai/github-runner
30+ permissions :
31+ packages : read
32+ contents : read
33+ actions : write
34+ steps :
35+ - uses : actions/checkout@v4
36+ - name : Run build
37+ run : |
38+ nix develop .#ci --command bash -c $'
39+ npm run build --verbose
40+ '
41+ - name : Upload Build
42+ uses : actions/upload-artifact@v4
43+ with :
44+ name : dist
45+ path : ./dist
46+
47+ # Test the dist
2548 check-test :
2649 name : " Check / Test"
50+ needs :
51+ check-build
2752 runs-on : ubuntu-latest
2853 container :
2954 image : ghcr.io/matrixai/github-runner
3459 checks : write
3560 steps :
3661 - uses : actions/checkout@v4
62+ - uses : actions/download-artifact@v4
63+ with :
64+ name : dist
65+ path : ./dist
3766 - name : Run tests
3867 run : |
3968 nix develop .#ci --command bash -c $'
5483 uses : actions/upload-artifact@v4
5584 with :
5685 name : coverage-report
57- path : tmp/coverage/cobertura-coverage.xml
58-
59- # Build the code
60- check-build :
61- name : " Check / Build"
62- runs-on : ubuntu-latest
63- container :
64- image : ghcr.io/matrixai/github-runner
65- permissions :
66- packages : read
67- contents : read
68- actions : write
69- steps :
70- - uses : actions/checkout@v4
71- - name : Run build
72- run : |
73- nix develop .#ci --command bash -c $'
74- npm run build --verbose
75- '
76- - name : Upload Build
77- uses : actions/upload-artifact@v4
78- with :
79- name : dist
80- path : ./dist
86+ path : tmp/coverage/cobertura-coverage.xml
You can’t perform that action at this time.
0 commit comments