Merge pull request #9 from don-omerta/codex/generate-complete-aionos-… #5
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: License consistency | |
| run: | | |
| grep -R "Apache License" LICENSE README.md | |
| - name: Install gateway deps | |
| run: | | |
| cd gateway | |
| npm install | |
| npm run build | |
| npm test | |
| - name: Install console deps | |
| run: | | |
| npm install -g pnpm | |
| pnpm -C console install | |
| pnpm -C console lint | |
| pnpm -C console test | |
| pnpm -C console build | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install control deps | |
| run: | | |
| pip install poetry | |
| cd control | |
| poetry install | |
| poetry run pytest | |
| - name: Run cargo tests | |
| run: | | |
| cd modules | |
| cargo test | |
| - name: Trivy Scan | |
| uses: aquasecurity/trivy-action@0.18.0 | |
| with: | |
| scan-type: fs | |
| ignore-unfixed: true | |
| severity: HIGH,CRITICAL | |
| - name: Syft SBOM | |
| uses: anchore/sbom-action@v0 | |
| with: | |
| output-file: sbom.spdx.json | |
| - name: Upload coverage | |
| if: always() | |
| run: echo "Coverage upload placeholder" |