-
Notifications
You must be signed in to change notification settings - Fork 26
60 lines (42 loc) · 1.37 KB
/
build-pull-request.yml
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
name: CI
on:
pull_request:
workflow_dispatch:
jobs:
build-catalog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- run: pip install -r .github/requirements.txt
- name: Lint Catalog Data
run: yamllint -d relaxed SBOM-Catalog
- name: Schema Check Catalog Data
run: yamale -s SBOM-Catalog/schemas/data.yaml SBOM-Catalog/public/data.yaml
- name: Schema Check Catalog Filters
run: yamale -s SBOM-Catalog/schemas/filters.yaml SBOM-Catalog/public/filters.yaml
- name: Install dependencies
run: cd SBOM-Catalog && npm install
- name: Run lint
run: cd SBOM-Catalog && npm run lint
- name: Run build
run: cd SBOM-Catalog && npm run build
build-wiki:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: cd SBOM-wiki && npm install
- name: Run build
run: cd SBOM-wiki && npm run build