Repository navigation
refactor(theme-classic): use the @docusaurus/infima package instead of the npm infima package #6101
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: Swizzle Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - docusaurus-v** | |
| paths: | |
| - packages/** | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Swizzle | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| action: ['eject', 'wrap'] | |
| variant: ['js', 'ts'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up pnpm, Node.js and dependencies | |
| uses: $/.github/actions/setup | |
| with: | |
| cache: true | |
| # Swizzle all the theme components | |
| - name: Swizzle (${{matrix.action}} - ${{matrix.variant}}) | |
| run: pnpm --filter website test:swizzle:${{matrix.action}}:${{matrix.variant}} | |
| # Build swizzled site | |
| - name: Build website | |
| run: pnpm build:website:fast | |
| # Ensure swizzled site still typechecks | |
| - name: TypeCheck website | |
| run: pnpm --filter website typecheck --project tsconfig.skipLibCheck.json |