|
12 | 12 | jobs:
|
13 | 13 | test:
|
14 | 14 | name: Execute Tests
|
15 |
| - runs-on: ubuntu-20.04 |
| 15 | + runs-on: ubuntu-22.04 |
16 | 16 | strategy:
|
17 | 17 | matrix:
|
18 |
| - node-version: [16.x, 18.x] |
| 18 | + node-version: [18.x, 20.x] |
19 | 19 | steps:
|
20 |
| - - uses: actions/checkout@v2 |
21 |
| - - name: Use Node.js ${{ matrix.node-version }} |
22 |
| - uses: actions/setup-node@v1 |
23 |
| - with: |
24 |
| - node-version: ${{ matrix.node-version }} |
25 |
| - - name: Install dependencies |
26 |
| - run: | |
27 |
| - npm ci --no-audit --no-fund |
28 |
| - cd test && npm ci --no-audit --no-fund |
29 |
| - - name: Run tests |
30 |
| - run: npm run test |
31 |
| - env: |
32 |
| - CI: true |
33 |
| - - name: Create Coverage summary file |
34 |
| - |
35 |
| - with: |
36 |
| - filename: ./coverage/cobertura-coverage.xml |
37 |
| - format: markdown |
38 |
| - output: both |
39 |
| - - name: Write PR meta to file |
40 |
| - run: | |
41 |
| - echo "PR_HEADSHA=${{ github.event.pull_request.head.sha }}" >> pr.env |
42 |
| - echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> pr.env |
43 |
| - - name: Upload PR meta and Coverage summery artifacts |
44 |
| - uses: actions/upload-artifact@v2 |
45 |
| - with: |
46 |
| - name: pr-comment-meta |
47 |
| - path: | |
48 |
| - pr.env |
49 |
| - code-coverage-results.md |
50 |
| - retention-days: 1 |
| 20 | + - uses: actions/checkout@v2 |
| 21 | + - name: Use Node.js ${{ matrix.node-version }} |
| 22 | + uses: actions/setup-node@v1 |
| 23 | + with: |
| 24 | + node-version: ${{ matrix.node-version }} |
| 25 | + - name: Install dependencies |
| 26 | + run: | |
| 27 | + npm ci --no-audit --no-fund |
| 28 | + cd test && npm ci --no-audit --no-fund |
| 29 | + - name: Run tests |
| 30 | + run: npm run test |
| 31 | + env: |
| 32 | + CI: true |
| 33 | + - name: Create Coverage summary file |
| 34 | + |
| 35 | + with: |
| 36 | + filename: ./coverage/cobertura-coverage.xml |
| 37 | + format: markdown |
| 38 | + output: both |
| 39 | + - name: Write PR meta to file |
| 40 | + run: | |
| 41 | + echo "PR_HEADSHA=${{ github.event.pull_request.head.sha }}" >> pr.env |
| 42 | + echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> pr.env |
| 43 | + - name: Upload PR meta and Coverage summery artifacts |
| 44 | + uses: actions/upload-artifact@v2 |
| 45 | + with: |
| 46 | + name: pr-comment-meta |
| 47 | + path: | |
| 48 | + pr.env |
| 49 | + code-coverage-results.md |
| 50 | + retention-days: 1 |
0 commit comments