Replace use of soon to be deprecated method (#29) #32
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: CI | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
env: | |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1' | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: pnpm | |
cache-dependency-path: '**/pnpm-lock.yaml' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile --prefer-offline | |
- name: Install Playwright Chromium | |
run: pnpm playwright install chromium | |
working-directory: tests | |
- name: Test unit | |
run: pnpm test:unit | |
- name: Test e2e dev | |
run: pnpm test:dev | |
working-directory: tests | |
- name: Test e2e build | |
run: pnpm test:build | |
working-directory: tests | |
- name: Archive test results | |
if: failure() | |
run: tar -czf test-results.tar.gz tests/test-results | |
- name: Upload test results | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
retention-days: 3 | |
name: test-failure-${{ github.run_id }} | |
path: test-results.tar.gz |