Skip to content

[DRAFT] Annotation viewer components #452

[DRAFT] Annotation viewer components

[DRAFT] Annotation viewer components #452

Workflow file for this run

name: Run Tests
on: pull_request
jobs:
Run-Tests:
timeout-minutes: 45
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
# Playwright snapshot tests generate pngs that are uploaded via
# git lfs. We therefore have to use git lfs when cloning the repo
# for tests so that snapshot tests have a truth to asset against
- name: Checkout
uses: nschloe/action-cached-lfs-checkout@v1
- name: Grant Audio Permissions (MacOS)
if: matrix.os == 'macos-latest'
run: |
sqlite3 $HOME/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT OR IGNORE INTO access VALUES ('kTCCServiceMicrophone','/usr/local/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159,NULL,NULL,'UNUSED',1687786159);"
sqlite3 $HOME/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT OR IGNORE INTO access VALUES ('kTCCServiceMicrophone','/opt/off/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159,NULL,NULL,'UNUSED',1687786159);"
- uses: pnpm/action-setup@v3
with:
version: 8
run_install: |
- recursive: true
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run tests
run: pnpm test
- name: Upload Test Report
# I use if always to ensure that the artifact is uploaded even if the
# tests fail
if: always()
uses: actions/upload-artifact@v4
with:
name: test-report-${{ matrix.os }}
path: ./test-report/
retention-days: 7
overwrite: true