translate tests to new testing framework #4
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: Unit Tests | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+* | |
pull_request: | |
types: ['opened', 'edited', 'reopened', 'synchronize', 'ready_for_review'] | |
jobs: | |
build: | |
if: '! github.event.pull_request.draft' | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Dev Environment | |
uses: jdx/mise-action@v2 | |
- name: Install dependencies | |
run: mise install | |
- run: pnpm install --frozen-lockfile | |
- name: Run headless test | |
uses: coactions/setup-xvfb@v1 | |
with: | |
run: mise test | |
# TODO: code coverage |