Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(nx/e2e): use generated playwright workflow
Elian Dorand31fa7a6cd79
diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.ymlindex 7f313de992..6943603636 100644--- a/.github/workflows/playwright.yml+++ b/.github/workflows/playwright.yml@@ -1,28 +1,46 @@-name: Playwright Tests+name: playwright+on:push:- branches: [ develop ]+ branches:+ - masterpull_request:- branches: [ develop ]++permissions:+ actions: read+ contents: read+jobs:- test:- timeout-minutes: 60+ main:runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v4- - uses: pnpm/action-setup@v4- - uses: actions/setup-node@v4- with:- node-version: lts/*- - name: Install dependencies- run: pnpm install --frozen-lockfile- - name: Install Playwright Browsers- run: npx playwright install --with-deps- - name: Run Playwright tests- run: npx playwright test- - uses: actions/upload-artifact@v4- if: ${{ !cancelled() }}- with:- name: playwright-report- path: playwright-report/- retention-days: 30+ - uses: actions/checkout@v4+ with:+ filter: tree:0+ fetch-depth: 0+++++ # This enables task distribution via Nx Cloud+ # Run this command as early as possible, before dependencies are installed+ # Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun+ # Connect your workspace by running "nx connect" and uncomment this line to enable task distribution+ # - run: npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="e2e-ci"+++ # Cache node_modules+ - uses: actions/setup-node@v4+ with:+ node-version: 20+ cache: 'npm'++ - run: npm ci --legacy-peer-deps+ - run: npx playwright install --with-deps+ - uses: nrwl/nx-set-shas@v4++ # Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud+ # - run: npx nx-cloud record -- echo Hello World+ # Nx Affected runs only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affected+ # When you enable task distribution, run the e2e-ci task instead of e2e+ - run: npx nx affected -t lint test build e2ediff --git a/nx.json b/nx.jsonindex 7baa49b6c0..91ff978b68 100644--- a/nx.json+++ b/nx.json@@ -15,7 +15,8 @@"!{projectRoot}/src/test-setup.[jt]s"],"sharedGlobals": [- "{workspaceRoot}/.github/workflows/release.yml"+ "{workspaceRoot}/.github/workflows/release.yml",+ "{workspaceRoot}/.github/workflows/playwright.yml"]},"plugins": [