Skip to content

build-and-test

build-and-test #17

Workflow file for this run

name: build-and-test
on:
deployment_status:
jobs:
e2e-playwright:
name: e2e-playwright
# TODO: remove `&& false` when find a way to correctly run this CI
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' && false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
- name: Install playwright browsers
run: pnpm playwright install --with-deps
- name: Run tests
run: pnpm test:e2e
env:
BASE_URL: ${{ github.event.deployment_status.environment_url }}