mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
chore(turbo): update input patterns in turbo.json to specify src directory for better caching
This commit is contained in:
parent
797d16c1fb
commit
2405477510
2 changed files with 15 additions and 10 deletions
7
.github/workflows/ci-pipeline.yml
vendored
7
.github/workflows/ci-pipeline.yml
vendored
|
@ -184,7 +184,7 @@ jobs:
|
||||||
if: ${{ needs.check_changes.outputs.exists == 'true' }}
|
if: ${{ needs.check_changes.outputs.exists == 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: mcr.microsoft.com/playwright:v1.52.0-jammy
|
image: mcr.microsoft.com/playwright:v1.53.1-jammy
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
@ -214,6 +214,11 @@ jobs:
|
||||||
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
restore-keys: ${{ runner.os }}-node-modules-
|
restore-keys: ${{ runner.os }}-node-modules-
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: lts/*
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
|
|
18
turbo.json
18
turbo.json
|
@ -18,48 +18,48 @@
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"cache": true,
|
"cache": true,
|
||||||
"inputs": ["**/*.{ts,tsx,js,jsx,astro,json}"],
|
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro,json}"],
|
||||||
"outputs": ["dist/**"]
|
"outputs": ["dist/**"]
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
"cache": true,
|
"cache": true,
|
||||||
"inputs": ["**/*.{ts,tsx,js,jsx,astro}"],
|
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
"spell": {
|
"spell": {
|
||||||
"cache": true,
|
"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": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
"test:e2e": {
|
"test:e2e": {
|
||||||
"cache": true,
|
"cache": true,
|
||||||
"inputs": ["**/*.{ts,tsx,js,jsx,astro}"],
|
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"],
|
||||||
"outputs": ["playwright-report/**", "test-results/**"]
|
"outputs": ["playwright-report/**", "test-results/**"]
|
||||||
},
|
},
|
||||||
"test:e2e:shard1": {
|
"test:e2e:shard1": {
|
||||||
"cache": true,
|
"cache": true,
|
||||||
"inputs": ["**/*.{ts,tsx,js,jsx,astro}"],
|
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"],
|
||||||
"outputs": ["playwright-report/**", "test-results/**"]
|
"outputs": ["playwright-report/**", "test-results/**"]
|
||||||
},
|
},
|
||||||
"test:e2e:shard2": {
|
"test:e2e:shard2": {
|
||||||
"cache": true,
|
"cache": true,
|
||||||
"inputs": ["**/*.{ts,tsx,js,jsx,astro}"],
|
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"],
|
||||||
"outputs": ["playwright-report/**", "test-results/**"]
|
"outputs": ["playwright-report/**", "test-results/**"]
|
||||||
},
|
},
|
||||||
"test:e2e:shard3": {
|
"test:e2e:shard3": {
|
||||||
"cache": true,
|
"cache": true,
|
||||||
"inputs": ["**/*.{ts,tsx,js,jsx,astro}"],
|
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"],
|
||||||
"outputs": ["playwright-report/**", "test-results/**"]
|
"outputs": ["playwright-report/**", "test-results/**"]
|
||||||
},
|
},
|
||||||
"test:e2e:shard4": {
|
"test:e2e:shard4": {
|
||||||
"cache": true,
|
"cache": true,
|
||||||
"inputs": ["**/*.{ts,tsx,js,jsx,astro}"],
|
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"],
|
||||||
"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": ["**/*.{ts,tsx,js,jsx,astro}"],
|
"inputs": ["src/**/*.{ts,tsx,js,jsx,astro}"],
|
||||||
"outputs": ["playwright-report/**", "test-results/**"]
|
"outputs": ["playwright-report/**", "test-results/**"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue