[DRAFT] Annotation viewer components #452
This file contains 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: 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 |