Repository navigation
chore(deps-dev): bump brace-expansion from 1.1.18 to 1.1.21 #830
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: Pull Request Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Check formatting (Prettier) | |
| run: npx prettier -c $(git ls-files "packages/vscode-extension/*.ts") | |
| - name: Check schema generated artifacts | |
| run: npm run check:schema-generated | |
| - name: Check LaTeX converter support snapshot | |
| run: npm run check:latex-support | |
| - name: Build utility packages | |
| run: npm run build:utils | |
| - name: Run conversion reliability matrix | |
| run: npm run test:reliability | |
| test-results: | |
| name: Test Results | |
| runs-on: ubuntu-latest | |
| needs: | |
| [ | |
| checks, | |
| library-unit, | |
| vscode-extension-unit, | |
| vscode-extension-integration, | |
| ] | |
| if: always() | |
| steps: | |
| - name: Check test status | |
| run: | | |
| if [ "${{ needs.checks.result }}" = "failure" ] || \ | |
| [ "${{ needs.library-unit.result }}" = "failure" ] || \ | |
| [ "${{ needs.vscode-extension-unit.result }}" = "failure" ] || \ | |
| [ "${{ needs.vscode-extension-integration.result }}" = "failure" ]; then | |
| echo "::error::One or more test jobs failed" | |
| exit 1 | |
| fi | |
| echo "✓ All tests passed" | |
| library-unit: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Install dependencies | |
| run: npm install | |
| # The library suites cross-import built packages (e.g. completions and | |
| # schema resolve each other's dist), so build the dependency graph first. | |
| - name: Build dependency packages | |
| run: npm run build:deps | |
| # Unit suites for the library packages: completions, schema, format, | |
| # ptxast, and pretext-html. (pretext-html's Vitest config supplies the | |
| # --experimental-wasm-jspi flag it needs via test.execArgv.) | |
| - name: Run library unit tests (Vitest) | |
| run: npm run test:libraries | |
| vscode-extension-unit: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Install dependencies | |
| run: npm install | |
| # The extension's unit tests import @pretextbook/schema, so the library | |
| # packages must be built before Vitest can resolve it. | |
| - name: Build dependency packages | |
| run: npm run build:deps | |
| - name: Run extension unit tests (Vitest) | |
| run: npm run test:unit -w pretext-tools | |
| vscode-extension-integration: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Install dependencies | |
| run: npm install | |
| # Assemble the runnable extension under dist/vscode-extension. | |
| - name: Build extension | |
| run: npm run build | |
| # VS Code needs a display; xvfb-run provides a headless one. | |
| - name: Run extension integration tests (VS Code) | |
| run: xvfb-run -a npm run test:integration -w pretext-tools |