File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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+ uses : actions/setup-node@v4.0.3
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+ uses : actions/setup-node@v4.0.3
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+ uses : codecov/codecov-action@v4.5.0
51+ with :
52+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 1+ {
2+ "tabWidth": 2,
3+ "semi": false,
4+ "singleQuote": true,
5+ "trailingComma": "none"
6+ }
Original file line number Diff line number Diff line change 1- # rich-logger
1+ # simplelog
2+
3+ ![ GitHub Actions Workflow Status] ( https://img.shields.io/github/actions/workflow/status/devsheva/simplelog/qa.yml )
4+ ![ Codecov] ( https://img.shields.io/codecov/c/github/devsheva/simplelog )
5+
26A simple logger decorator amplify like
Original file line number Diff line number Diff line change 11{
2+ "name" : " simplelog" ,
3+ "description" : " A simple logging library" ,
24 "devDependencies" : {
5+ "@vitest/coverage-v8" : " ^2.0.5" ,
6+ "nodemon" : " ^3.1.4" ,
7+ "prettier" : " 3.3.3" ,
8+ "ts-node" : " ^10.9.2" ,
39 "typescript" : " ^5.5.4" ,
410 "vitest" : " ^2.0.5"
11+ },
12+ "scripts" : {
13+ "start" : " pnpm ts-node src/index.ts" ,
14+ "dev" : " pnpm nodemon src/index.ts" ,
15+ "build" : " tsc" ,
16+ "test" : " vitest" ,
17+ "coverage" : " vitest run --coverage"
518 }
619}
You can’t perform that action at this time.
0 commit comments