From 0d884aca6b01adcbeac90bb6ab37048bd5fbc684 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Thu, 6 Aug 2026 10:18:56 +0200 Subject: [PATCH 1/2] Use preinstalled chrome for tests in CI --- .github/workflows/ci.yml | 1 - vite.config.ts | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92e66eb4..45fa4aa1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,4 +13,3 @@ jobs: with: node-version: 26.x publish-coverage: true - install-playwright: true diff --git a/vite.config.ts b/vite.config.ts index aaf34086..d4dbb9d4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -41,7 +41,10 @@ export default defineConfig({ test: { // Run tests in an actual browser browser: { - provider: playwright(), + provider: playwright({ + // In CI, this instructs playwright to use a pre-existing Chrome instance + launchOptions: process.env.CI ? { channel: 'chrome' } : undefined, + }), enabled: true, headless: true, screenshotFailures: false, From cec79e640c06ee82f19a825bf6e57f993696595b Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Thu, 6 Aug 2026 10:20:49 +0200 Subject: [PATCH 2/2] Remove deploy-preview workflow which is never used --- .github/workflows/deploy-preview.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 .github/workflows/deploy-preview.yml diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml deleted file mode 100644 index 48dba2be..00000000 --- a/.github/workflows/deploy-preview.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Deploy preview - -on: - pull_request_target: null - -jobs: - deploy: - runs-on: ubuntu-24.04 - continue-on-error: true - steps: - - name: Checkout code - uses: actions/checkout@v6 - with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.event.pull_request.head.ref }} - - name: Use node.js - uses: actions/setup-node@v6 - with: - node-version: 24.14 - - name: Build - run: | - npm ci && \ - node ./scripts/set-homepage.cjs /shlink-web-client/${GITHUB_HEAD_REF#refs/heads/} && \ - node --run build - - name: Deploy preview - uses: shlinkio/deploy-preview-action@v1.0.1 - with: - folder: build