Skip to content

translate tests to new testing framework #474

translate tests to new testing framework

translate tests to new testing framework #474

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- v[0-9]+.[0-9]+.[0-9]+*
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize', 'ready_for_review']
jobs:
tests:
name: Tests
timeout-minutes: 60
if: '! github.event.pull_request.draft'
strategy:
matrix: { environment: ['-web', ''] }
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Cache pnpm
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Cache Browsers
uses: actions/cache@v4
with:
key: mise${{ matrix.environment }}-${{ hashFiles('{0}/vscode-master-key/mise.toml {0}/vscode-master-key/pnpm-lock.yaml', github.workspace) }}
path: >-
${{ github.workspace }}/.vscode-test${{ matrix.environment }}
- name: Install Dev Environment
uses: jdx/mise-action@v2
with:
version: 2025.6.4
install: true
cache: true
experimental: true
- name: Unit Tests
uses: coactions/setup-xvfb@v1
with:
run: mise test${{ matrix.environment }}
- name: Integration Tests
if: matrix.environment == ''
uses: coactions/setup-xvfb@v1
with:
run: mise run test-integration
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }} && matrix.environment == ''
with:
name: playwright-report
path: playwright-report/
retention-days: 7