From f2a2f7442813079dae3ca5b0bc916b493ae6b408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 23 Oct 2024 03:15:06 -0400 Subject: [PATCH] edit workflow --- .editorconfig | 6 +++++- .github/workflows/playwright.yml | 17 ++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.editorconfig b/.editorconfig index 39c930d..2c706c3 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,7 +4,11 @@ root = true end_of_line = lf insert_final_newline = true -[*.{js,json,yml,ts,tsx,jsx}] +[*.{js,json,ts,tsx,jsx}] charset = utf-8 indent_style = tab indent_size = 2 + +[*.yml] +indent_style = space +indent_size = 2 diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index a94b641..853d822 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -14,11 +14,18 @@ jobs: with: node-version: lts/* - name: Install dependencies - run: npm install -g yarn && yarn - - name: Install Playwright Browsers - run: yarn playwright install --with-deps - - name: Run Playwright tests - run: yarn playwright test + run: | + apt-get update + apt-get install -y jq libgtk libnotify libnss libxss libxtst xdg-utils libatspi libsecret + 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" + dpkg -i ./obsidian.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: