|
8 | 8 | timeout-minutes: 10
|
9 | 9 | strategy:
|
10 | 10 | matrix:
|
11 |
| - node-version: [20.x] |
| 11 | + node-version: [22.x] |
12 | 12 | steps:
|
13 |
| - - uses: actions/checkout@v2 |
14 |
| - - name: Use Node.js ${{ matrix.node-version }} |
15 |
| - uses: actions/setup-node@v1 |
16 |
| - with: |
17 |
| - node-version: ${{ matrix.node-version }} |
18 |
| - - run: npm install |
19 |
| - - name: Run eslint |
20 |
| - run: npm run lint |
| 13 | + - uses: actions/checkout@v4 |
| 14 | + - name: Use Node.js ${{ matrix.node-version }} |
| 15 | + uses: actions/setup-node@v4 |
| 16 | + with: |
| 17 | + node-version: ${{ matrix.node-version }} |
| 18 | + - run: npm install |
| 19 | + - name: Run eslint |
| 20 | + run: npm run lint |
21 | 21 | test-node:
|
22 |
| - needs: lint |
| 22 | + needs: [lint] |
23 | 23 | runs-on: ubuntu-latest
|
24 | 24 | timeout-minutes: 10
|
25 | 25 | strategy:
|
26 | 26 | matrix:
|
27 |
| - node-version: [16.x, 18.x, 20.x] |
| 27 | + node-version: [20.x, 22.x] |
28 | 28 | steps:
|
29 |
| - - uses: actions/checkout@v2 |
30 |
| - - name: Use Node.js ${{ matrix.node-version }} |
31 |
| - uses: actions/setup-node@v1 |
32 |
| - with: |
33 |
| - node-version: ${{ matrix.node-version }} |
34 |
| - - run: npm install |
35 |
| - - name: Run test with Node.js ${{ matrix.node-version }} |
36 |
| - run: npm run test-node |
| 29 | + - uses: actions/checkout@v4 |
| 30 | + - name: Use Node.js ${{ matrix.node-version }} |
| 31 | + uses: actions/setup-node@v4 |
| 32 | + with: |
| 33 | + node-version: ${{ matrix.node-version }} |
| 34 | + - run: npm install |
| 35 | + - name: Run tests with Node.js ${{ matrix.node-version }} |
| 36 | + run: npm run test-node |
37 | 37 | test-karma:
|
38 |
| - needs: lint |
| 38 | + needs: [lint] |
39 | 39 | runs-on: ubuntu-latest
|
40 | 40 | timeout-minutes: 10
|
41 | 41 | strategy:
|
42 | 42 | matrix:
|
43 |
| - node-version: [20.x] |
| 43 | + node-version: [22.x] |
44 | 44 | steps:
|
45 |
| - - uses: actions/checkout@v2 |
46 |
| - - name: Use Node.js ${{ matrix.node-version }} |
47 |
| - uses: actions/setup-node@v1 |
48 |
| - with: |
49 |
| - node-version: ${{ matrix.node-version }} |
50 |
| - - run: npm install |
51 |
| - - name: Run karma tests |
52 |
| - run: npm run test-karma |
| 45 | + - uses: actions/checkout@v4 |
| 46 | + - name: Use Node.js ${{ matrix.node-version }} |
| 47 | + uses: actions/setup-node@v4 |
| 48 | + with: |
| 49 | + node-version: ${{ matrix.node-version }} |
| 50 | + - run: npm install |
| 51 | + - name: Run karma tests |
| 52 | + run: npm run test-karma |
53 | 53 | coverage:
|
54 | 54 | needs: [test-node, test-karma]
|
55 |
| - runs-on: ubuntu-latest |
56 | 55 | timeout-minutes: 10
|
| 56 | + runs-on: ubuntu-latest |
57 | 57 | strategy:
|
58 | 58 | matrix:
|
59 |
| - node-version: [20.x] |
| 59 | + node-version: [22.x] |
60 | 60 | steps:
|
61 |
| - - uses: actions/checkout@v2 |
62 |
| - - name: Use Node.js ${{ matrix.node-version }} |
63 |
| - uses: actions/setup-node@v1 |
64 |
| - with: |
65 |
| - node-version: ${{ matrix.node-version }} |
66 |
| - - run: npm install |
67 |
| - - name: Generate coverage report |
68 |
| - run: npm run coverage-ci |
69 |
| - - name: Upload coverage to Codecov |
70 |
| - uses: codecov/codecov-action@v2 |
71 |
| - with: |
72 |
| - file: ./coverage/lcov.info |
73 |
| - fail_ci_if_error: true |
| 61 | + - uses: actions/checkout@v4 |
| 62 | + - name: Use Node.js ${{ matrix.node-version }} |
| 63 | + uses: actions/setup-node@v4 |
| 64 | + with: |
| 65 | + node-version: ${{ matrix.node-version }} |
| 66 | + - run: npm install |
| 67 | + - name: Generate coverage report |
| 68 | + run: npm run coverage-ci |
| 69 | + - name: Upload coverage to Codecov |
| 70 | + uses: codecov/codecov-action@v4 |
| 71 | + with: |
| 72 | + file: ./coverage/lcov.info |
| 73 | + fail_ci_if_error: true |
| 74 | + token: ${{ secrets.CODECOV_TOKEN }} |
0 commit comments