|
1 | | -name: Node.js CI |
| 1 | +name: Main CI |
2 | 2 |
|
3 | | -on: [push] |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - 'main' |
| 7 | + pull_request: |
| 8 | + branches: |
| 9 | + - '**' |
| 10 | + |
| 11 | +permissions: {} |
4 | 12 |
|
5 | 13 | jobs: |
6 | 14 | lint: |
|
10 | 18 | matrix: |
11 | 19 | node-version: [24.x] |
12 | 20 | steps: |
13 | | - - uses: actions/checkout@v4 |
| 21 | + - uses: actions/checkout@v6 |
| 22 | + with: |
| 23 | + persist-credentials: false |
14 | 24 | - name: Use Node.js ${{ matrix.node-version }} |
15 | | - uses: actions/setup-node@v4 |
| 25 | + uses: actions/setup-node@v6 |
16 | 26 | with: |
17 | 27 | node-version: ${{ matrix.node-version }} |
18 | 28 | - run: npm install |
|
25 | 35 | matrix: |
26 | 36 | node-version: [18.x, 20.x, 22.x, 24.x] |
27 | 37 | steps: |
28 | | - - uses: actions/checkout@v4 |
| 38 | + - uses: actions/checkout@v6 |
| 39 | + with: |
| 40 | + persist-credentials: false |
29 | 41 | - name: Use Node.js ${{ matrix.node-version }} |
30 | | - uses: actions/setup-node@v4 |
| 42 | + uses: actions/setup-node@v6 |
31 | 43 | with: |
32 | 44 | node-version: ${{ matrix.node-version }} |
33 | 45 | - name: Install |
|
44 | 56 | node-version: [24.x] |
45 | 57 | bundler: [webpack, browserify] |
46 | 58 | steps: |
47 | | - - uses: actions/checkout@v4 |
| 59 | + - uses: actions/checkout@v6 |
| 60 | + with: |
| 61 | + persist-credentials: false |
48 | 62 | - name: Use Node.js ${{ matrix.node-version }} |
49 | | - uses: actions/setup-node@v4 |
| 63 | + uses: actions/setup-node@v6 |
50 | 64 | with: |
51 | 65 | node-version: ${{ matrix.node-version }} |
52 | 66 | - name: Install |
|
64 | 78 | matrix: |
65 | 79 | node-version: [24.x] |
66 | 80 | steps: |
67 | | - - uses: actions/checkout@v4 |
| 81 | + - uses: actions/checkout@v6 |
| 82 | + with: |
| 83 | + persist-credentials: false |
68 | 84 | - name: Use Node.js ${{ matrix.node-version }} |
69 | | - uses: actions/setup-node@v4 |
| 85 | + uses: actions/setup-node@v6 |
70 | 86 | with: |
71 | 87 | node-version: ${{ matrix.node-version }} |
72 | 88 | - run: npm install |
|
80 | 96 | matrix: |
81 | 97 | node-version: [24.x] |
82 | 98 | steps: |
83 | | - - uses: actions/checkout@v4 |
| 99 | + - uses: actions/checkout@v6 |
| 100 | + with: |
| 101 | + persist-credentials: false |
84 | 102 | - name: Use Node.js ${{ matrix.node-version }} |
85 | | - uses: actions/setup-node@v4 |
| 103 | + uses: actions/setup-node@v6 |
86 | 104 | with: |
87 | 105 | node-version: ${{ matrix.node-version }} |
88 | 106 | - name: Install |
|
92 | 110 | - name: Generate coverage report |
93 | 111 | run: npm run coverage-ci |
94 | 112 | - name: Upload coverage to Codecov |
95 | | - uses: codecov/codecov-action@v4 |
| 113 | + uses: codecov/codecov-action@v5 |
96 | 114 | with: |
97 | 115 | file: ./coverage/lcov.info |
98 | 116 | fail_ci_if_error: true |
|
0 commit comments