Skip to content

Commit 4265be3

Browse files
feat: update integration tests workflow with improved caching (elizaOS#2589)
* feat: update integration tests workflow with improved caching Co-Authored-By: Sayo <hi@sayo.wtf> * Update integrationTests.yaml * test further with diff config * fix container version * Update integrationTests.yaml * Update integrationTests.yaml * test further --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Sayo <hi@sayo.wtf>
1 parent a00f723 commit 4265be3

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed
+20-22
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: Integration Tests
22
on:
33
push:
4-
branches:
5-
- "*"
4+
branches: ["*"]
65
pull_request:
7-
branches:
8-
- "*"
6+
branches: ["*"]
97

108
jobs:
119
integration-tests:
@@ -15,26 +13,27 @@ jobs:
1513
steps:
1614
- uses: actions/checkout@v4
1715

18-
- uses: pnpm/action-setup@v3
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
1918
with:
20-
version: 9.15.0
19+
node-version: '23.3'
2120

22-
- uses: actions/setup-node@v4
21+
- name: Cache pnpm
22+
uses: actions/cache@v4
2323
with:
24-
node-version: "23.3.0"
25-
cache: 'pnpm'
26-
cache-dependency-path: '**/pnpm-lock.yaml'
27-
28-
- name: Configure pnpm
29-
run: |
30-
pnpm config set store-dir ~/.pnpm-store
31-
pnpm config set prefer-offline true
32-
pnpm config set node-linker hoisted
33-
pnpm config set shamefully-hoist true
34-
pnpm config list
35-
24+
path: |
25+
~/.pnpm-store
26+
**/node_modules
27+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
28+
restore-keys: ${{ runner.os }}-pnpm-
29+
30+
- name: Setup pnpm
31+
uses: pnpm/action-setup@v3
32+
with:
33+
version: 9.15.0
34+
3635
- name: Install dependencies
37-
run: pnpm install -r --no-frozen-lockfile --prefer-offline
36+
run: pnpm install --no-frozen-lockfile
3837

3938
- name: Build packages
4039
run: pnpm build
@@ -43,5 +42,4 @@ jobs:
4342
env:
4443
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
4544
COINBASE_COMMERCE_KEY: ${{ secrets.COINBASE_COMMERCE_KEY }}
46-
run: |
47-
pnpm run integrationTests
45+
run: pnpm run integrationTests

0 commit comments

Comments
 (0)