Design liquid glass console surfaces #74
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: [AIONOS] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install pre-commit | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pre-commit | |
| - name: Run pre-commit | |
| run: pre-commit run --all-files | |
| - name: Run preflight | |
| run: tools/preflight.sh --noninteractive | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install gateway dependencies | |
| working-directory: gateway | |
| run: npm ci | |
| - name: Build gateway | |
| working-directory: gateway | |
| run: npm run build | |
| - name: Install console dependencies | |
| working-directory: console | |
| run: npm ci | |
| - name: Build console | |
| working-directory: console | |
| run: npm run build | |
| - name: Install Poetry | |
| run: pip install poetry | |
| - name: Install control dependencies | |
| working-directory: control | |
| run: poetry install --no-root | |
| - name: Install Cosign | |
| uses: sigstore/cosign-installer@v3.5.0 | |
| - name: Verify policy bundles | |
| run: ./deploy/bundles/verify.sh | |
| - name: Generate sample Cosign signature | |
| env: | |
| COSIGN_PASSWORD: "" | |
| run: | | |
| mkdir -p .artifacts | |
| cosign generate-key-pair --output-key .artifacts/cosign.key --output-pub .artifacts/cosign.pub --yes | |
| cosign sign-blob --key .artifacts/cosign.key --output-signature .artifacts/control-server.pem.sig config/certs/control-server.pem | |
| - name: Compose up | |
| run: docker compose up -d --build | |
| - name: Run smoke test | |
| run: ./scripts/smoke_e2e.sh | |
| - name: Dump compose logs | |
| if: always() | |
| run: docker compose logs > compose.log | |
| - name: Upload logs | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: compose-logs | |
| path: compose.log | |
| - name: Compose down | |
| if: always() | |
| run: docker compose down -v | |
| native: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Run native installer | |
| run: | | |
| chmod +x scripts/install_linux.sh | |
| ./scripts/install_linux.sh | |
| - name: Wait for services | |
| run: sleep 20 | |
| - name: Run native smoke test | |
| run: ./scripts/smoke.sh | |
| - name: Show service status | |
| if: always() | |
| run: | | |
| sudo systemctl status omerta-control | |
| sudo systemctl status omerta-gateway | |
| sudo systemctl status omerta-console | |
| - name: Collect journal logs | |
| if: always() | |
| run: | | |
| sudo journalctl -u omerta-control -n 200 --no-pager > control.log | |
| sudo journalctl -u omerta-gateway -n 200 --no-pager > gateway.log | |
| sudo journalctl -u omerta-console -n 200 --no-pager > console.log | |
| - name: Upload native logs | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: native-logs | |
| path: | | |
| control.log | |
| gateway.log | |
| console.log |