fix: update PWA manifest text #171
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: Playwright Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
code-validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/node-pnpm-cached | |
- name: Run migrations to build database types | |
run: | | |
pnpm run build-migrations | |
pnpm run migrations | |
- name: Typecheck | |
run: pnpm tsc | |
- name: Lint | |
run: pnpm lint | |
e2e: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/node-pnpm-cached | |
- name: Get installed Playwright version | |
id: playwright-version | |
# run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV | |
# If we update playwright we have to manually update here or parse the pnpm-lock.yaml version | |
run: echo "PLAYWRIGHT_VERSION=1.35.1" >> $GITHUB_ENV | |
- name: Cache playwright binaries | |
uses: actions/cache@v3 | |
id: playwright-cache | |
with: | |
path: | | |
~/.cache/ms-playwright | |
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} | |
- name: Install Playwright Browsers | |
run: pnpm exec playwright install --with-deps | |
if: steps.playwright-cache.outputs.cache-hit != 'true' | |
- name: Run build | |
run: | | |
pnpm run build-migrations | |
pnpm run migrations | |
- name: Run Playwright tests | |
run: pnpm exec playwright test | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-test-results | |
path: test-results/ | |
retention-days: 30 |