Compare commits
1 Commits
5ac014d112
...
cce1dfff33
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cce1dfff33 |
@@ -21,8 +21,9 @@ jobs:
|
||||
id: cache-key
|
||||
run: echo "key=bun-${{ hashFiles('**/bun.lock') }}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache node_modules
|
||||
uses: actions/cache@v4
|
||||
- name: Restore node_modules cache
|
||||
id: cache-restore
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ steps.cache-key.outputs.key }}
|
||||
@@ -30,8 +31,16 @@ jobs:
|
||||
bun-
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.cache-restore.outputs.cache-hit != 'true'
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Save node_modules cache
|
||||
if: steps.cache-restore.outputs.cache-hit != 'true'
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ steps.cache-key.outputs.key }}
|
||||
|
||||
type-check:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
@@ -42,7 +51,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Restore node_modules
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ needs.install.outputs.cache-key }}
|
||||
@@ -62,7 +71,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Restore node_modules
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ needs.install.outputs.cache-key }}
|
||||
@@ -82,7 +91,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Restore node_modules
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ needs.install.outputs.cache-key }}
|
||||
@@ -102,7 +111,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Restore node_modules
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ needs.install.outputs.cache-key }}
|
||||
|
||||
Reference in New Issue
Block a user