translate tests to new testing framework #476
Workflow file for this run
This file contains hidden or 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: 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: Find Cache Directories | |
run: echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_ENV | |
- name: Cache | |
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 }} | |
${{ env.PNPM_STORE_PATH }} | |
- 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 | |
name: Upload Integration Logs | |
if: ${{ !cancelled() && matrix.environment == ''}} | |
with: | |
name: test-results | |
path: test-results/ | |
retention-days: 7 | |
- uses: actions/upload-artifact@v4 | |
name: Upload Integration Report | |
if: ${{ !cancelled() && matrix.environment == ''}} | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 7 |