fix: sync index.html — apply all accumulated UI fixes to deployed file #465
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: | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| - name: Check whitespace | |
| run: | | |
| set -euo pipefail | |
| if [ "${{ github.event_name }}" = "pull_request" ]; then | |
| git fetch --no-tags --depth=1 origin "${{ github.base_ref }}" | |
| git diff --check "origin/${{ github.base_ref }}...HEAD" | |
| else | |
| git diff-tree --check --no-commit-id --root -r HEAD | |
| fi | |
| - name: Validate platform config | |
| run: python3 scripts/build_config.py --check | |
| - name: Validate runtime targets | |
| run: python3 scripts/runtime_settings.py validate | |
| - name: Run unit tests | |
| run: python3 -m unittest discover -s tests -v | |
| - name: Checkout internal dependency consumer repos | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: bash scripts/checkout_internal_dependency_consumers.sh --output-root .. | |
| - name: Report internal dependency matrix | |
| run: python3 scripts/check_internal_dependency_matrix.py --projects-root .. --json --strict --require-consumer-files | |
| - name: Validate strategy switch web assets | |
| run: | | |
| set -euo pipefail | |
| python3 scripts/build_config.py --check | |
| python3 scripts/build_config.py | |
| python3 scripts/sync_strategy_switch_page_asset.py | |
| git diff --exit-code -- web/strategy-switch-console/page_asset.js web/strategy-switch-console/strategy_profiles_asset.js | |
| jq empty web/strategy-switch-console/strategy-profiles.example.json | |
| node --experimental-default-type=module tests/strategy_switch_worker_validation.mjs | |
| sed -n '/<script>/,/<\/script>/p' web/strategy-switch-console/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/strategy_profiles_asset.js | |
| node --check --input-type=module < web/strategy-switch-console/worker.js |