From 24054775109ef983b9dcc3a854bb9c2e71ea4e7d Mon Sep 17 00:00:00 2001 From: taroj1205 Date: Sun, 22 Jun 2025 19:28:04 +1200 Subject: [PATCH] chore(turbo): update input patterns in turbo.json to specify src directory for better caching --- .github/workflows/ci-pipeline.yml | 7 ++++++- turbo.json | 18 +++++++++--------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index a04f2f4..5bec5e5 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -184,7 +184,7 @@ jobs: if: ${{ needs.check_changes.outputs.exists == 'true' }} runs-on: ubuntu-latest container: - image: mcr.microsoft.com/playwright:v1.52.0-jammy + image: mcr.microsoft.com/playwright:v1.53.1-jammy steps: - uses: actions/checkout@v4 @@ -214,6 +214,11 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: ${{ runner.os }}-node-modules- + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: lts/* + - name: Setup pnpm uses: pnpm/action-setup@v4 with: diff --git a/turbo.json b/turbo.json index 809653c..908333d 100644 --- a/turbo.json +++ b/turbo.json @@ -18,48 +18,48 @@ }, "build": { "cache": true, - "inputs": ["**/*.{ts,tsx,js,jsx,astro,json}"], + "inputs": ["src/**/*.{ts,tsx,js,jsx,astro,json}"], "outputs": ["dist/**"] }, "test": { "cache": true, - "inputs": ["**/*.{ts,tsx,js,jsx,astro}"], + "inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"], "outputs": [] }, "spell": { "cache": true, - "inputs": ["src/**/*.{ts,tsx,js,jsx,astro,md,json,yml,yaml}"], + "inputs": ["src/**/*.{ts,tsx,js,jsx,astro,md,json,yml,yaml,yml}"], "outputs": [] }, "test:e2e": { "cache": true, - "inputs": ["**/*.{ts,tsx,js,jsx,astro}"], + "inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"], "outputs": ["playwright-report/**", "test-results/**"] }, "test:e2e:shard1": { "cache": true, - "inputs": ["**/*.{ts,tsx,js,jsx,astro}"], + "inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"], "outputs": ["playwright-report/**", "test-results/**"] }, "test:e2e:shard2": { "cache": true, - "inputs": ["**/*.{ts,tsx,js,jsx,astro}"], + "inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"], "outputs": ["playwright-report/**", "test-results/**"] }, "test:e2e:shard3": { "cache": true, - "inputs": ["**/*.{ts,tsx,js,jsx,astro}"], + "inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"], "outputs": ["playwright-report/**", "test-results/**"] }, "test:e2e:shard4": { "cache": true, - "inputs": ["**/*.{ts,tsx,js,jsx,astro}"], + "inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"], "outputs": ["playwright-report/**", "test-results/**"] }, "test:e2e:all": { "cache": true, "dependsOn": ["test:e2e:shard1", "test:e2e:shard2", "test:e2e:shard3", "test:e2e:shard4"], - "inputs": ["**/*.{ts,tsx,js,jsx,astro}"], + "inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"], "outputs": ["playwright-report/**", "test-results/**"] } },