-
Notifications
You must be signed in to change notification settings - Fork 40
34 lines (32 loc) · 1.02 KB
/
mandatory-tests.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
name: CSAF Mandatory Tests
on: [push, pull_request]
jobs:
mandatory-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Setup csaf-validator-lib
run: |
cd ..
git clone https://github.com/secvisogram/csaf-validator-lib.git
cd csaf-validator-lib && npm ci --prod
- name: Run mandatory tests on examples
run: |
for i in `ls -1 ../csaf/csaf_2.0/examples/csaf/*.json`
do
printf "%s%s\n" "Starting test of " $i
../csaf-validator-lib/scripts/runTest.js $i base
done
# Only temporary until examples in the repo are reorganized
- name: Run mandatory tests on examples/csaf_vex
run: |
for i in `ls -1 ../csaf/csaf_2.0/examples/csaf/csaf_vex/*.json`
do
printf "%s%s\n" "Starting test of " $i
../csaf-validator-lib/scripts/runTest.js $i base
done