File tree 2 files changed +45
-6
lines changed
2 files changed +45
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : Node.js CI Coverage
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main", "develop", "feature/*" ]
6
+ pull_request :
7
+ branches : [ "main" ]
8
+
9
+ jobs :
10
+ build :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ strategy :
15
+ matrix :
16
+ os : [
17
+ " ubuntu-latest"
18
+ ]
19
+ node-version : [20.x]
20
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21
+
22
+ steps :
23
+ - name : Checkout repository
24
+ uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
25
+ with :
26
+ fetch-depth : 0
27
+ - name : Set up Node.js ${{ matrix.node-version }}
28
+ uses : actions/setup-node@v4
29
+ with :
30
+ node-version : ${{ matrix.node-version }}
31
+
32
+ - name : Install dependencies
33
+ run : npm ci --verbose
34
+
35
+ - name : Lint
36
+ run : npm run lint
37
+
38
+ - name : Run the tests
39
+ run : npm test -- --coverage
40
+
41
+ - name : Upload coverage reports to Codecov with GitHub Action
42
+ uses : codecov/codecov-action@v4
43
+ with :
44
+ token : ${{ secrets.CODECOV_TOKEN }} # required
45
+ verbose : true # optional (default = false)
Original file line number Diff line number Diff line change 40
40
41
41
- name : Test
42
42
run : npm run test
43
-
44
- - name : Upload coverage reports to Codecov with GitHub Action
45
- uses : codecov/codecov-action@v4
46
- with :
47
- token : ${{ secrets.CODECOV_TOKEN }} # required
48
- verbose : true # optional (default = false)
You can’t perform that action at this time.
0 commit comments