diff --git a/.github/workflows/preview_bottle.yaml b/.github/workflows/preview_bottle.yaml index 82963a6..de2dd9a 100644 --- a/.github/workflows/preview_bottle.yaml +++ b/.github/workflows/preview_bottle.yaml @@ -50,9 +50,20 @@ jobs: echo "NEXT_PUBLIC_SERVER_BASE_URL=${{ secrets.NEXT_PUBLIC_SERVER_BASE_URL }}" >> apps/bottle/.env.local env: NEXT_PUBLIC_SERVER_BASE_URL: ${{ secrets.NEXT_PUBLIC_SERVER_BASE_URL }} + - name: Check for changes using Turbo + id: turbo-check + run: | + npx turbo-ignore e2e --task=test:e2e + + - name: Set CI status + if: steps.turbo-check.outputs.changed != 'true' + run: echo "No changes detected. Skipping CI." + continue-on-error: true - run: pnpx playwright install if: steps.playwright-cache.outputs.cache-hit != 'true' - run: pnpx playwright install-deps + if: steps.turbo_check.outputs.changed == 'true' + if: pnpx turbo-ignore - run: pnpm run ci - name: Install Vercel CLI run: npm install --global vercel@latest diff --git a/package.json b/package.json index 2a840e7..fa41ebe 100644 --- a/package.json +++ b/package.json @@ -18,5 +18,8 @@ "packageManager": "pnpm@8.15.6", "engines": { "node": ">=18" + }, + "dependencies": { + "turbo-ignore": "^2.0.14" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1935196..e7fc177 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,6 +7,10 @@ settings: importers: .: + dependencies: + turbo-ignore: + specifier: ^2.0.14 + version: 2.0.14 devDependencies: prettier: specifier: ^3.2.5 @@ -7846,6 +7850,13 @@ packages: dev: true optional: true + /turbo-ignore@2.0.14: + resolution: {integrity: sha512-x4s7D5i2xjiVTJat5qR/e2aEXmfcwaMda0JlsYdOrCiZP2v1jYftHajqP1I6AZcSyb1Yf6TafWFVDSxG0CEF9Q==} + hasBin: true + dependencies: + json5: 2.2.3 + dev: false + /turbo-linux-64@2.0.11: resolution: {integrity: sha512-mv8CwGP06UPweMh1Vlp6PI6OWnkuibxfIJ4Vlof7xqjohAaZU5FLqeOeHkjQflH/6YrCVuS9wrK0TFOu+meTtA==} cpu: [x64]