Skip to content

Commit aaf1fdf

Browse files
author
zho
committed
fixed ci
1 parent 215663e commit aaf1fdf

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ on:
99

1010
jobs:
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

0 commit comments

Comments
 (0)