|
25 | 25 | jobs:
|
26 | 26 | build:
|
27 | 27 | runs-on: ubuntu-latest
|
28 |
| - |
29 |
| - strategy: |
30 |
| - matrix: |
31 |
| - node-version: [20] |
32 |
| - |
33 | 28 | steps:
|
34 | 29 | - uses: actions/checkout@v4
|
35 |
| - - name: Use Node.js ${{ matrix.node-version }} |
| 30 | + - name: Use Node.js |
36 | 31 | uses: actions/setup-node@v4
|
37 | 32 | with:
|
38 |
| - node-version: ${{ matrix.node-version }} |
| 33 | + node-version-file: .nvmrc |
39 | 34 | cache: npm
|
40 |
| - cache-dependency-path: package-lock.json |
| 35 | + cache-dependency-path: ./package-lock.json |
41 | 36 | - run: npm ci --no-audit --no-fund --prefer-offline
|
42 | 37 | - run: npm run lint:errors
|
43 |
| - - run: npm run build |
| 38 | + - run: npm run build:for:cms |
44 | 39 | - run: npm run generate:jsonschema:dist
|
| 40 | + |
| 41 | + test: |
| 42 | + runs-on: ubuntu-latest |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v4 |
| 45 | + - name: Use Node.js |
| 46 | + uses: actions/setup-node@v4 |
| 47 | + with: |
| 48 | + node-version-file: .nvmrc |
| 49 | + cache: npm |
| 50 | + cache-dependency-path: ./package-lock.json |
| 51 | + - run: npm ci --no-audit --no-fund --prefer-offline |
45 | 52 | - run: npx playwright install --with-deps
|
46 | 53 | - run: npm test
|
47 | 54 | - name: Upload Code Coverage reports
|
|
51 | 58 | name: code-coverage
|
52 | 59 | path: coverage/
|
53 | 60 | retention-days: 30
|
54 |
| - # Commented out since it is outdated and is quite spammy |
55 |
| - # - name: Report code coverage |
56 |
| - # uses: zgosalvez/github-actions-report-lcov@v2 |
57 |
| - # if: always() |
58 |
| - # continue-on-error: true |
59 |
| - # with: |
60 |
| - # coverage-files: coverage/lcov.info |
61 |
| - # artifact-name: code-coverage-report |
62 |
| - # github-token: ${{ secrets.GITHUB_TOKEN }} |
63 |
| - # working-directory: ./ |
0 commit comments