Skip to content

Commit f2d39a1

Browse files
committed
Update workflow.
- Update workflow name. - Run checks on pull requests. - Fix zizmor reported issues. - Update action versions.
1 parent 84b1b33 commit f2d39a1

File tree

1 file changed

+31
-13
lines changed

1 file changed

+31
-13
lines changed

.github/workflows/main.yaml

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
name: Node.js CI
1+
name: Main CI
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
permissions: {}
412

513
jobs:
614
lint:
@@ -10,9 +18,11 @@ jobs:
1018
matrix:
1119
node-version: [24.x]
1220
steps:
13-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v6
22+
with:
23+
persist-credentials: false
1424
- name: Use Node.js ${{ matrix.node-version }}
15-
uses: actions/setup-node@v4
25+
uses: actions/setup-node@v6
1626
with:
1727
node-version: ${{ matrix.node-version }}
1828
- run: npm install
@@ -25,9 +35,11 @@ jobs:
2535
matrix:
2636
node-version: [18.x, 20.x, 22.x, 24.x]
2737
steps:
28-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v6
39+
with:
40+
persist-credentials: false
2941
- name: Use Node.js ${{ matrix.node-version }}
30-
uses: actions/setup-node@v4
42+
uses: actions/setup-node@v6
3143
with:
3244
node-version: ${{ matrix.node-version }}
3345
- name: Install
@@ -44,9 +56,11 @@ jobs:
4456
node-version: [24.x]
4557
bundler: [webpack, browserify]
4658
steps:
47-
- uses: actions/checkout@v4
59+
- uses: actions/checkout@v6
60+
with:
61+
persist-credentials: false
4862
- name: Use Node.js ${{ matrix.node-version }}
49-
uses: actions/setup-node@v4
63+
uses: actions/setup-node@v6
5064
with:
5165
node-version: ${{ matrix.node-version }}
5266
- name: Install
@@ -64,9 +78,11 @@ jobs:
6478
matrix:
6579
node-version: [24.x]
6680
steps:
67-
- uses: actions/checkout@v4
81+
- uses: actions/checkout@v6
82+
with:
83+
persist-credentials: false
6884
- name: Use Node.js ${{ matrix.node-version }}
69-
uses: actions/setup-node@v4
85+
uses: actions/setup-node@v6
7086
with:
7187
node-version: ${{ matrix.node-version }}
7288
- run: npm install
@@ -80,9 +96,11 @@ jobs:
8096
matrix:
8197
node-version: [24.x]
8298
steps:
83-
- uses: actions/checkout@v4
99+
- uses: actions/checkout@v6
100+
with:
101+
persist-credentials: false
84102
- name: Use Node.js ${{ matrix.node-version }}
85-
uses: actions/setup-node@v4
103+
uses: actions/setup-node@v6
86104
with:
87105
node-version: ${{ matrix.node-version }}
88106
- name: Install
@@ -92,7 +110,7 @@ jobs:
92110
- name: Generate coverage report
93111
run: npm run coverage-ci
94112
- name: Upload coverage to Codecov
95-
uses: codecov/codecov-action@v4
113+
uses: codecov/codecov-action@v5
96114
with:
97115
file: ./coverage/lcov.info
98116
fail_ci_if_error: true

0 commit comments

Comments
 (0)