File tree Expand file tree Collapse file tree 5 files changed +357
-554
lines changed
Expand file tree Collapse file tree 5 files changed +357
-554
lines changed Original file line number Diff line number Diff line change 1+ name : CI/CD
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+
13+ strategy :
14+ matrix :
15+ node-version : [18.x, 20.x]
16+
17+ steps :
18+ - name : Checkout code
19+ uses : actions/checkout@v4
20+
21+ - name : Setup Node.js ${{ matrix.node-version }}
22+ uses : actions/setup-node@v4
23+ with :
24+ node-version : ${{ matrix.node-version }}
25+ cache : ' npm'
26+
27+ - name : Install dependencies
28+ run : npm ci
29+
30+ - name : Type check
31+ run : npm run typecheck
32+
33+ - name : Lint
34+ run : npm run lint
35+
36+ - name : Check formatting
37+ run : npm run format:check
38+
39+ - name : Run tests with coverage
40+ run : npm run test:coverage
41+
42+ - name : Upload coverage to Codecov
43+ uses : codecov/codecov-action@v4
44+ with :
45+ file : ./coverage/lcov.info
46+ flags : unittests
47+ name : codecov-umbrella
48+ fail_ci_if_error : false
49+
50+ build :
51+ runs-on : ubuntu-latest
52+ needs : test
53+
54+ steps :
55+ - name : Checkout code
56+ uses : actions/checkout@v4
57+
58+ - name : Setup Node.js
59+ uses : actions/setup-node@v4
60+ with :
61+ node-version : ' 20.x'
62+ cache : ' npm'
63+
64+ - name : Install dependencies
65+ run : npm ci
66+
67+ - name : Build
68+ run : npm run build
69+
70+ - name : Test build
71+ run : npm run test:build
Original file line number Diff line number Diff line change 22
33Patch Pulse CLI is a tool that identifies out-of-date dependencies in your ` package.json ` file, ensuring your project stays up-to-date with the latest versions available on npm.
44
5- ![ License] ( https://img.shields.io/github/license/PatchPulse/cli.svg ) [ ![ npm Version] ( https://img.shields.io/npm/v/patch-pulse.svg )] ( https://npmjs.com/package/patch-pulse ) [ ![ npm Downloads] ( https://img.shields.io/npm/dm/patch-pulse.svg )] ( https://npmjs.com/package/patch-pulse )
5+ ![ License] ( https://img.shields.io/github/license/PatchPulse/cli.svg ) [ ![ npm Version] ( https://img.shields.io/npm/v/patch-pulse.svg )] ( https://npmjs.com/package/patch-pulse ) [ ![ npm Downloads] ( https://img.shields.io/npm/dm/patch-pulse.svg )] ( https://npmjs.com/package/patch-pulse ) [ ![ Test Coverage ] ( https://img.shields.io/codecov/c/github/PatchPulse/cli )] ( https://codecov.io/gh/PatchPulse/cli )
66![ GitHub stars] ( https://img.shields.io/github/stars/PatchPulse/cli.svg?style=social ) ![ GitHub forks] ( https://img.shields.io/github/forks/PatchPulse/cli.svg?style=social )
77
88![ Patch Pulse Banner] ( assets/banner.png )
You can’t perform that action at this time.
0 commit comments