Editorial clarification: "present and set" #1467
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CSAF Mandatory Tests (CSAF 2.1) | |
| on: | |
| push: | |
| paths: | |
| - 'csaf_2.1/**' | |
| pull_request: | |
| paths: | |
| - 'csaf_2.1/**' | |
| jobs: | |
| mandatory-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - 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.1/examples/csaf/*.json | grep -Ev 'rhsa-2021_5186.json|rhsa-2021_5217|rhsa-2022_0011.json'` | |
| do | |
| printf "%s%s\n" "Starting test of " $i | |
| ../csaf-validator-lib/scripts/runTest.js -f $i -t base -c 2.1 | |
| 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.1/examples/csaf/csaf_vex/*.json` | |
| do | |
| printf "%s%s\n" "Starting test of " $i | |
| ../csaf-validator-lib/scripts/runTest.js -f $i -t base -c 2.1 | |
| done | |
| # Commented out as not yet supported by the test tools | |
| # Only temporary until examples in the repo are reorganized | |
| #- name: Run mandatory tests on examples/appendix | |
| # run: | | |
| # for i in `ls -1 ../csaf/csaf_2.1/examples/csaf/appendix/*.json` | |
| # do | |
| # printf "%s%s\n" "Starting test of " $i | |
| # ../csaf-validator-lib/scripts/runTest.js -f $i -t base -c 2.1 | |
| # done |