Skip to content

Commit 357c0b1

Browse files
author
Eason Smith
committed
ci secipt that passed all tests
1 parent d7068ac commit 357c0b1

File tree

2 files changed

+6
-91
lines changed

2 files changed

+6
-91
lines changed

.github/workflows/run-tests-build.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,21 @@ jobs:
5858
with:
5959
node-version: 20
6060

61-
- name: Enable Corepack
62-
run: corepack enable
63-
6461
- name: Set up Yarn
6562
uses: threeal/[email protected]
6663

64+
- name: Get last git commit hash
65+
run: |
66+
echo "DIFF_HASH=$(git log -1 --pretty=format:%H)" >> $GITHUB_ENV
67+
6768
- name: Cache NextJS
6869
uses: actions/cache@v4
6970
with:
7071
path: |
7172
${{ github.workspace }}/.next/cache
7273
# Generate a new cache whenever packages or source files change.
73-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
74+
#key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
75+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ env.DIFF_HASH }}
7476
# If source files changed but packages didn't, rebuild from a prior cache.
7577
restore-keys: |
7678
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-

.github/workflows/run-tests-debug.yaml

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)