introduce oscal cli validation and remove legacy example projects #6
Workflow file for this run
This file contains 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: Run OSCAL CLI Validation | |
on: | |
pull_request: | |
branches: [ main, master ] # Adjust these branch names as needed | |
workflow_dispatch: # Keeps the manual trigger option | |
jobs: | |
run-oscal-cli-validation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '11' | |
- name: Validate XML SRC files | |
run: make validate-by-cli FORMAT=src-xml | |
# - name: Validate XML DIST files | |
# run: make validate-by-cli FORMAT=xml | |
# - name: Validate JSON files | |
# run: make validate-by-cli FORMAT=json | |
# - name: Validate YAML files | |
# run: make validate-by-cli FORMAT=yaml |