File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010jobs :
1111 build-and-test :
12- runs-on : ${{ matrix.os }}
12+ runs-on : ubuntu-latest
1313 strategy :
1414 fail-fast : false
1515 matrix :
16- os : [ubuntu-latest, windows-latest, macos-latest]
1716 node-version : [18.x, 20.x, 22.x]
1817
1918 steps :
@@ -44,26 +43,22 @@ jobs:
4443 run : node dist/index.js --help
4544
4645 - name : Run tests with coverage
47- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
4846 run : npm run test:coverage
4947
5048 - name : Run tests (no coverage)
51- if : " !(matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x')"
5249 run : npm test
5350
5451 - name : Generate CycloneDX SBOM (lockfile-based)
55- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
5652 run : npx --yes @cyclonedx/cyclonedx-npm --package-lock-only --output-file sbom.cdx.json
5753
5854 - name : Upload SBOM artifact
59- if : matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
6055 uses : actions/upload-artifact@v4
6156 with :
62- name : sbom-cyclonedx
57+ name : sbom-cyclonedx-node-${{ matrix.node-version }}
6358 path : sbom.cdx.json
6459
6560 - name : Upload coverage to Codecov
66- if : matrix.os == 'ubuntu-latest' && matrix. node-version == '20.x'
61+ if : matrix.node-version == '20.x'
6762 uses : codecov/codecov-action@v5
6863 with :
6964 files : ./coverage/lcov.info
You can’t perform that action at this time.
0 commit comments