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@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - name: Set up Node LTS uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 with: node-version: lts/* cache: yarn - name: Installation run: yarn || yarn || yarn # Swizzle all the theme components - name: Swizzle (${{matrix.action}} - ${{matrix.variant}}) run: yarn workspace website test:swizzle:${{matrix.action}}:${{matrix.variant}} # Build swizzled site - name: Build website run: yarn build:website:fast # Ensure swizzled site still typechecks - name: TypeCheck website run: yarn workspace website typecheck --project tsconfig.skipLibCheck.json