feat(repo): replace eslint for biomejs with airbnb defaults imported #569
Workflow file for this run
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: E2E | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
paths: | |
- '**.ts' | |
- '**.tsx' | |
- '**/tsconfig.json' | |
- 'pnpm-lock.yaml' | |
- '.github/workflows/e2e.yml' | |
pull_request: | |
paths: | |
- '**.ts' | |
- '**.tsx' | |
- '**/tsconfig.json' | |
- 'pnpm-lock.yaml' | |
- '.github/workflows/e2e.yml' | |
defaults: | |
run: | |
shell: 'bash' | |
jobs: | |
test_setup: | |
name: Test setup | |
runs-on: ubuntu-latest | |
outputs: | |
preview_url: ${{ steps.waitForVercelPreviewDeployment.outputs.url }} | |
steps: | |
- name: Wait for Vercel preview deployment to be ready | |
uses: patrickedqvist/[email protected] | |
id: waitForVercelPreviewDeployment | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
max_timeout: 3000 | |
test_e2e: | |
runs-on: ubuntu-latest | |
needs: test_setup | |
name: Playwright tests | |
timeout-minutes: 15 | |
environment: ${{ vars.ENVIRONMENT_STAGE }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v3 # docs https://pnpm.io/continuous-integration#github-actions | |
with: | |
version: 9 # Optional: specify a pnpm version | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install Playwright with deps | |
run: pnpx playwright install --with-deps | |
- name: Run tests | |
run: pnpm run test:e2e | |
env: | |
PLAYWRIGHT_TEST_BASE_URL: ${{ needs.test_setup.outputs.preview_url }} | |
- uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: playwright-report | |
path: test-results/ | |
retention-days: 30 |