Skip to content

Commit

Permalink
GH Actions
Browse files Browse the repository at this point in the history
- addresses parts of oasis-tcs#858
- update GH action setup-node to v4
- update GH action checkout to v4
  • Loading branch information
tschmidtb51 committed Jan 16, 2025
1 parent eb17286 commit 6c4a1d0
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/csaf_2.0_cpe.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CPE Dictionary Test (CSAF 2.0)

on:
on:
push:
paths:
- 'csaf_2.0/**'
Expand All @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Perform CPE Dictionary Test
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/csaf_2.0_filenames.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CSAF Filenames Test (CSAF 2.0)

on:
on:
push:
paths:
- 'csaf_2.0/**'
Expand All @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup pip package "paikalta"
run: pip install paikalta
- name: Test filenames of CSAF filename test files in filenames/data/valid/*.json
Expand All @@ -22,11 +22,11 @@ jobs:
run: ./csaf_2.0/test/filenames/run_invalid_tests.sh ./csaf_2.0/test/filenames/data/invalid/*.json
- name: Test filenames of CSAF examples
run: ./csaf_2.0/test/filenames/run_tests.sh ./csaf_2.0/examples/csaf/*.json
- name: Test filenames of CSAF examples - profile specific folders
- name: Test filenames of CSAF examples - profile specific folders
run: ./csaf_2.0/test/filenames/run_tests.sh ./csaf_2.0/examples/csaf/csaf_*/*.json
- name: Test filenames of CSAF test files in validator/data/mandatory
run: ./csaf_2.0/test/filenames/run_tests.sh ./csaf_2.0/test/validator/data/mandatory/*.json
- name: Test filenames of CSAF test files in validator/data/optional
- name: Test filenames of CSAF test files in validator/data/optional
run: ./csaf_2.0/test/filenames/run_tests.sh ./csaf_2.0/test/validator/data/optional/*.json
- name: Test filenames of CSAF test files in validator/data/informative
run: ./csaf_2.0/test/filenames/run_tests.sh ./csaf_2.0/test/validator/data/informative/*.json
2 changes: 1 addition & 1 deletion .github/workflows/csaf_2.0_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Test JSON schemas
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Prepare environment
run: |
sudo apt-get remove python3-jsonschema
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/csaf_2.0_mandatory-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CSAF Mandatory Tests (CSAF 2.0)

on:
on:
push:
paths:
- 'csaf_2.0/**'
Expand All @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Setup csaf-validator-lib
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/csaf_2.0_validator.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Validator Data Test (CSAF 2.0)

on:
on:
push:
paths:
- 'csaf_2.0/**'
Expand All @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Prepare environment
run: |
sudo apt-get remove python3-jsonschema
Expand All @@ -35,4 +35,4 @@ jobs:
run: ./csaf_2.0/test/validator/run_tests.sh informative

- name: Test validator/data/testcases.json against testcase schema
run: ./csaf_2.0/test/validator/check_testcases.sh
run: ./csaf_2.0/test/validator/check_testcases.sh
4 changes: 2 additions & 2 deletions .github/workflows/csaf_2.1_cpe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Perform CPE Dictionary Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/csaf_2.1_filenames.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup pip package "paikalta"
run: pip install paikalta
- name: Test filenames of CSAF filename test files in filenames/data/valid/*.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/csaf_2.1_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Test JSON schemas
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Prepare environment
run: |
sudo apt-get remove python3-jsonschema
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/csaf_2.1_mandatory-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Setup csaf-validator-lib
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/csaf_2.1_validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Prepare environment
run: |
sudo apt-get remove python3-jsonschema
Expand Down

0 comments on commit 6c4a1d0

Please sign in to comment.