mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
fix(ci-pipeline): update cache keys to use GitHub SHA for better cache management
This commit is contained in:
parent
449bd00c47
commit
4fccd01331
1 changed files with 21 additions and 7 deletions
28
.github/workflows/ci-pipeline.yml
vendored
28
.github/workflows/ci-pipeline.yml
vendored
|
@ -25,7 +25,9 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
.turbo
|
.turbo
|
||||||
node_modules
|
node_modules
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-turbo-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-turbo-
|
||||||
- name: Verify pnpm installation
|
- name: Verify pnpm installation
|
||||||
run: pnpm --version
|
run: pnpm --version
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
@ -50,7 +52,9 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
.turbo
|
.turbo
|
||||||
node_modules
|
node_modules
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-turbo-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-turbo-
|
||||||
- name: Run Eslint check
|
- name: Run Eslint check
|
||||||
run: pnpm exec turbo run lint
|
run: pnpm exec turbo run lint
|
||||||
|
|
||||||
|
@ -71,7 +75,9 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
.turbo
|
.turbo
|
||||||
node_modules
|
node_modules
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-turbo-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-turbo-
|
||||||
- name: Run Prettier check
|
- name: Run Prettier check
|
||||||
run: pnpm exec turbo run format
|
run: pnpm exec turbo run format
|
||||||
|
|
||||||
|
@ -92,7 +98,9 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
.turbo
|
.turbo
|
||||||
node_modules
|
node_modules
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-turbo-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-turbo-
|
||||||
- name: Run cspell check
|
- name: Run cspell check
|
||||||
run: pnpm exec turbo run spell
|
run: pnpm exec turbo run spell
|
||||||
|
|
||||||
|
@ -113,7 +121,9 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
.turbo
|
.turbo
|
||||||
node_modules
|
node_modules
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-turbo-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-turbo-
|
||||||
- name: Run Vitest tests
|
- name: Run Vitest tests
|
||||||
run: pnpm exec turbo test
|
run: pnpm exec turbo test
|
||||||
|
|
||||||
|
@ -134,7 +144,9 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
.turbo
|
.turbo
|
||||||
node_modules
|
node_modules
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-turbo-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-turbo-
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: pnpm exec turbo run build
|
run: pnpm exec turbo run build
|
||||||
- name: Upload build output
|
- name: Upload build output
|
||||||
|
@ -163,7 +175,9 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
.turbo
|
.turbo
|
||||||
node_modules
|
node_modules
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-turbo-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-turbo-
|
||||||
- name: Install Playwright Browsers
|
- name: Install Playwright Browsers
|
||||||
run: pnpm exec playwright install --with-deps
|
run: pnpm exec playwright install --with-deps
|
||||||
- name: Download build output
|
- name: Download build output
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue