-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.22 KB
/
Copy pathci.yml
File metadata and controls
61 lines (48 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
name: "NodeJS Build"
on:
push:
branches: ["main", "hotfix"]
pull_request:
branches: ["main"]
# Prevent concurrent runs for the same PR/branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
node-version: [26.x]
fail-fast: false
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Security Audit
run: npm audit --omit=dev --audit-level=low
- name: Install Dependencies
run: npm ci --prefer-offline
- name: Build and verify bookmarklets
run: npm test
- name: Generate SBOM
run: npm sbom --sbom-format=cyclonedx --omit=dev > sbom.json
- name: Upload SBOM
uses: actions/upload-artifact@v7
with:
name: sbom-node-${{ matrix.node-version }}
path: sbom.json
retention-days: 90
build:
runs-on: ubuntu-latest
needs: test
timeout-minutes: 5
steps:
- name: Build Summary
run: echo "All matrix builds completed successfully"