Skip to content

ci: add e2e test job and enable preview deployments for feat/integrat… #1128

ci: add e2e test job and enable preview deployments for feat/integrat…

ci: add e2e test job and enable preview deployments for feat/integrat… #1128

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
- push
# Allows you to run this workflow manually from the Actions tab
- workflow_dispatch
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
lint-and-prettify:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: install dependencies
run: pnpm install --frozen-lockfile
- run: pnpm format:check
- run: pnpm lint
- run: pnpm test
- run: pnpm ci-dev-build
- run: pnpm test:generated
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: install dependencies
run: pnpm install --frozen-lockfile
- name: install playwright browsers
run: pnpm exec playwright install --with-deps chromium
- name: run e2e tests
run: pnpm test:e2e
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: test-results/
retention-days: 7