update patchwork packages #811
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: ci | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| checks: | |
| name: build and test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: check out the repository | |
| uses: actions/checkout@v3 | |
| - name: install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - name: install javascript | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: "pnpm" | |
| - name: install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: build website | |
| run: pnpm build | |
| - name: run the tests | |
| run: pnpm test | |
| e2e: | |
| name: e2e (${{ matrix.browser }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| browser: [chromium, firefox, webkit] | |
| steps: | |
| - name: check out the repository | |
| uses: actions/checkout@v3 | |
| - name: install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - name: install javascript | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: "pnpm" | |
| - name: install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: install browser | |
| run: | | |
| version=$(node -p "require('@inkandswitch/patchwork-e2e/package.json').dependencies['@playwright/test']") | |
| pnpm dlx playwright@$version install --with-deps ${{ matrix.browser }} | |
| - name: build the site | |
| run: pnpm build | |
| - name: run the e2e tests | |
| run: pnpm patchwork-e2e -- --project=${{ matrix.browser }} | |
| - name: upload the report | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-report-${{ matrix.browser }} | |
| path: playwright-report | |
| retention-days: 7 | |
| - name: upload test results | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-${{ matrix.browser }} | |
| path: test-results | |
| retention-days: 7 |