feat(qsl): converge taxonomy and bundle governance #716
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: | |
| actionlint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Actionlint | |
| uses: docker://rhysd/actionlint:1.7.12 | |
| python: | |
| 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" | |
| - name: Install Python packaging tools | |
| run: | | |
| set -euo pipefail | |
| python3 -m pip install --upgrade pip | |
| python3 -m pip install build -e ./python | |
| - name: Verify Python dependencies | |
| run: python3 -m pip check | |
| - 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 python/scripts/build_config.py --check | |
| - name: Validate runtime targets | |
| run: python3 python/scripts/runtime_settings.py validate | |
| - name: Run Python unit tests | |
| run: python3 -m unittest discover -s python/tests -v | |
| - name: Build Python package | |
| run: python3 -m build ./python | |
| - name: Checkout internal dependency consumer repos | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: bash python/shell/checkout_internal_dependency_consumers.sh --output-root .. | |
| - name: Report internal dependency matrix | |
| run: python3 python/scripts/check_internal_dependency_matrix.py --projects-root .. --json --strict --require-consumer-files | |
| js: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Validate strategy switch web assets | |
| run: | | |
| set -euo pipefail | |
| python3 python/scripts/build_config.py --check | |
| python3 python/scripts/build_config.py | |
| python3 python/scripts/sync_strategy_switch_page_asset.py | |
| git diff --exit-code -- web/strategy-switch-console/config.js web/strategy-switch-console/index.html web/strategy-switch-console/page_asset.js web/strategy-switch-console/strategy_profiles_asset.js web/strategy-switch-console/app_css.js web/strategy-switch-console/app_js.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/app_css.js | |
| node --check --input-type=module < web/strategy-switch-console/app_js.js | |
| node --check --input-type=module < web/strategy-switch-console/worker.js |