obsidian-testing-framework/.github/workflows/playwright.yml
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ b21f835e05
Some checks failed
Playwright Tests / test (push) Failing after 11s
edit workflow
2024-10-23 03:37:49 -04:00

34 lines
1.0 KiB
YAML

name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: |
apt-get update
apt-get install -y jq
curled=$(curl -L https://github.com/obsidianmd/obsidian-releases/raw/refs/heads/master/desktop-releases.json | jq .latestVersion | sed s/\"//g)
dpkg -i "https://github.com/obsidianmd/obsidian-releases/releases/download/v$curled/obsidian_$curled_amd64.deb"
corepack enable
yarn install
cd packages/test-project
yarn playwright install --with-deps
yarn workspace obsidian-testing-framework run tsc
yarn playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30