chore(turbo): unify input patterns in turbo.json for consistency across tasks

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

View file

@ -185,6 +185,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: mcr.microsoft.com/playwright:v1.53.1-jammy image: mcr.microsoft.com/playwright:v1.53.1-jammy
env:
CI: true
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -231,7 +233,6 @@ jobs:
- name: Run Playwright Tests (4 Shards) - name: Run Playwright Tests (4 Shards)
run: pnpm exec turbo run test:e2e:all run: pnpm exec turbo run test:e2e:all
timeout-minutes: 10 timeout-minutes: 10
- name: Upload Playwright Report - name: Upload Playwright Report
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
if: always() if: always()

View file

@ -18,12 +18,12 @@
}, },
"build": { "build": {
"cache": true, "cache": true,
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro,json}"], "inputs": ["src/**/*"],
"outputs": ["dist/**"] "outputs": ["dist/**"]
}, },
"test": { "test": {
"cache": true, "cache": true,
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"], "inputs": ["src/**/*"],
"outputs": [] "outputs": []
}, },
"spell": { "spell": {
@ -33,33 +33,33 @@
}, },
"test:e2e": { "test:e2e": {
"cache": true, "cache": true,
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"], "inputs": ["src/**/*"],
"outputs": ["playwright-report/**", "test-results/**"] "outputs": ["playwright-report/**", "test-results/**"]
}, },
"test:e2e:shard1": { "test:e2e:shard1": {
"cache": true, "cache": true,
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"], "inputs": ["src/**/*"],
"outputs": ["playwright-report/**", "test-results/**"] "outputs": ["playwright-report/**", "test-results/**"]
}, },
"test:e2e:shard2": { "test:e2e:shard2": {
"cache": true, "cache": true,
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"], "inputs": ["src/**/*"],
"outputs": ["playwright-report/**", "test-results/**"] "outputs": ["playwright-report/**", "test-results/**"]
}, },
"test:e2e:shard3": { "test:e2e:shard3": {
"cache": true, "cache": true,
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"], "inputs": ["src/**/*"],
"outputs": ["playwright-report/**", "test-results/**"] "outputs": ["playwright-report/**", "test-results/**"]
}, },
"test:e2e:shard4": { "test:e2e:shard4": {
"cache": true, "cache": true,
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"], "inputs": ["src/**/*"],
"outputs": ["playwright-report/**", "test-results/**"] "outputs": ["playwright-report/**", "test-results/**"]
}, },
"test:e2e:all": { "test:e2e:all": {
"cache": true, "cache": true,
"dependsOn": ["test:e2e:shard1", "test:e2e:shard2", "test:e2e:shard3", "test:e2e:shard4"], "dependsOn": ["test:e2e:shard1", "test:e2e:shard2", "test:e2e:shard3", "test:e2e:shard4"],
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"], "inputs": ["src/**/*"],
"outputs": ["playwright-report/**", "test-results/**"] "outputs": ["playwright-report/**", "test-results/**"]
} }
}, },