chore(turbo): update input patterns in turbo.json to specify src directory for better caching

This commit is contained in:
taroj1205 2025-06-22 19:28:04 +12:00
parent 797d16c1fb
commit 2405477510
No known key found for this signature in database
GPG key ID: 0FCB6CFFE0981AB7
2 changed files with 15 additions and 10 deletions

View file

@ -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:

View file

@ -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/**"]
}
},