☙◦ The Tablet ❀ GamerGirlandCo ◦❧
b1d0453723
All checks were successful
Playwright Tests / test (push) Successful in 2m35s
This reverts commit 13c76cf3e5c403cad23088fb413fcff6167f9bee.
39 lines
1.3 KiB
YAML
39 lines
1.3 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: |
|
|
[ -z $(command -v sudo) ] && apt-get update && apt-get install sudo
|
|
sudo apt-get update
|
|
sudo apt-get install -y jq xdg-utils xvfb
|
|
curled=$(curl -L https://github.com/obsidianmd/obsidian-releases/raw/refs/heads/master/desktop-releases.json | jq .latestVersion | sed s/\"//g)
|
|
curl -Lo obsidian.deb "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-deps
|
|
sudo dpkg -i ../../obsidian.deb
|
|
- name: compile and test!
|
|
run: |
|
|
export XDG_CONFIG_HOME=$HOME/.config
|
|
yarn workspace obsidian-testing-framework run tsc
|
|
yarn workspace obsidian-sample-plugin run test
|
|
- uses: actions/upload-artifact@v4
|
|
if: ${{ !cancelled() }}
|
|
with:
|
|
name: playwright-report
|
|
path: playwright-report/
|
|
retention-days: 30
|