Bump docker/setup-buildx-action from 3.8.0 to 3.10.0 #29
This file contains 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: Test CDN Build (local) | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 | |
- name: Build packages | |
uses: ./.github/actions/build | |
with: | |
packages-only: true | |
node-version: ${{ matrix.node-version }} | |
- name: Get Playwright version | |
id: playwright-version | |
run: echo "PLAYWRIGHT_VERSION=$(npx playwright --version | cut -d' ' -f2)" >> "$GITHUB_OUTPUT" | |
- name: Playwright binary cache | |
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 | |
with: | |
path: | | |
~/.cache/ms-playwright | |
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }} | |
- name: Install Playwright browsers | |
run: npx playwright install | |
- name: Install Playwright dependencies | |
run: npx playwright install-deps | |
- name: Start HTML server | |
run: pnpm --filter @scalar-examples/cdn-api-reference dev & | |
- name: Run e2e tests (local) | |
run: CI=1 pnpm test:e2e:local |