Skip to content

Test

Test #2

Workflow file for this run

name: Run tests
on:
# push:
# branches:
# - main
pull_request:
branches:
- main
jobs:
unit_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run unit tests
run: pnpm test:unit
integration_test:
runs-on: ubuntu-latest
needs: unit_test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Install playwright browsers
run: pnpm exec playwright install --with-deps
- name: Run integration tests
run: pnpm test:integration