Harden hidden auth controls #48
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: Validate | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| - name: Validate runtime targets | |
| run: python3 scripts/runtime_settings.py validate | |
| - name: Run unit tests | |
| run: python3 -m unittest discover -s tests -v | |
| - name: Validate strategy switch web assets | |
| run: | | |
| set -euo pipefail | |
| python3 scripts/sync_strategy_switch_page_asset.py | |
| git diff --exit-code -- web/strategy-switch-console/page_asset.js | |
| sed -n '/<script>/,/<\/script>/p' docs/index.html | sed '1d;$d' | node --check --input-type=commonjs | |
| node --check --input-type=module < web/strategy-switch-console/page_asset.js | |
| node --check --input-type=module < web/strategy-switch-console/worker.js |