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..ba5811c 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 + 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 --with-deps + dpkg -i ./obsidian.deb + yarn workspace obsidian-testing-framework run tsc + yarn playwright test - uses: actions/upload-artifact@v4 if: ${{ !cancelled() }} with: