translate tests to new testing framework #479
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: Prepare Cache Directories | |
run: >- | |
echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_ENV && | |
mkdir $HOME/.cache && | |
echo "Created cachedir $HOME/.cache" | |
- 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 }} | |
${{ env.HOME }}/.cache | |
- name: Install Dev Environment | |
uses: jdx/mise-action@v2 | |
with: | |
version: 2025.6.4 | |
install: true | |
cache: true | |
experimental: true | |
- uses: awalsh128/cache-apt-pkgs-action@v1 | |
with: | |
packages: xvfb x11-xserver-utils | |
version: 1.0 | |
- name: Unit Tests | |
run: xvfb-run -a mise test${{ matrix.environment }} | |
- name: Integration Tests | |
if: matrix.environment == '' | |
run: xvfb-run -a 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 |