File tree Expand file tree Collapse file tree 2 files changed +54
-2
lines changed
Expand file tree Collapse file tree 2 files changed +54
-2
lines changed Original file line number Diff line number Diff line change 1+ name : QA Workflow
2+
3+ on :
4+ push :
5+ branches : develop
6+ tags : ' *'
7+ pull_request :
8+ branches : master
9+
10+ jobs :
11+ test :
12+ runs-on : ubuntu-latest
13+ name : Test
14+ steps :
15+ - uses : actions/checkout@v4
16+ - name : Install pnpm
17+ uses : pnpm/action-setup@v4
18+ with :
19+ version : 9
20+ - name : Setup Node.js environment
21+ 22+ with :
23+ node-version-file : ' .tool-versions'
24+ cache : ' pnpm'
25+ - name : Install dependencies
26+ run : pnpm install
27+ - name : Run tests
28+ run : pnpm test
29+
30+ coverage :
31+ name : Coverage
32+ runs-on : ubuntu-latest
33+ needs : test
34+ steps :
35+ - uses : actions/checkout@v4
36+ - name : Install pnpm
37+ uses : pnpm/action-setup@v4
38+ with :
39+ version : 9
40+ - name : Setup Node.js environment
41+ 42+ with :
43+ node-version-file : ' .tool-versions'
44+ cache : ' pnpm'
45+ - name : Install dependencies
46+ run : pnpm install
47+ - name : Run coverage
48+ run : pnpm coverage
49+ - name : Upload coverage
50+ 51+ with :
52+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 11{
22 "name" : " simplelog" ,
33 "description" : " A simple logging library" ,
4- "version" : " 0.1.0" ,
54 "devDependencies" : {
65 "nodemon" : " ^3.1.4" ,
76 "prettier" : " 3.3.3" ,
1312 "start" : " pnpm ts-node src/index.ts" ,
1413 "dev" : " pnpm nodemon src/index.ts" ,
1514 "build" : " tsc" ,
16- "test" : " vitest"
15+ "test" : " vitest" ,
16+ "coverage" : " vitest run --coverage"
1717 }
1818}
You can’t perform that action at this time.
0 commit comments