Skip to content

Commit

Permalink
feat: update integration tests workflow with improved caching (elizaO…
Browse files Browse the repository at this point in the history
…S#2589)

* feat: update integration tests workflow with improved caching

Co-Authored-By: Sayo <[email protected]>

* 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 <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and wtfsayo authored Jan 21, 2025
1 parent a00f723 commit 4265be3
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions .github/workflows/integrationTests.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Integration Tests
on:
push:
branches:
- "*"
branches: ["*"]
pull_request:
branches:
- "*"
branches: ["*"]

jobs:
integration-tests:
Expand All @@ -15,26 +13,27 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
version: 9.15.0
node-version: '23.3'

- uses: actions/setup-node@v4
- name: Cache pnpm
uses: actions/cache@v4
with:
node-version: "23.3.0"
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'

- name: Configure pnpm
run: |
pnpm config set store-dir ~/.pnpm-store
pnpm config set prefer-offline true
pnpm config set node-linker hoisted
pnpm config set shamefully-hoist true
pnpm config list
path: |
~/.pnpm-store
**/node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9.15.0

- name: Install dependencies
run: pnpm install -r --no-frozen-lockfile --prefer-offline
run: pnpm install --no-frozen-lockfile

- name: Build packages
run: pnpm build
Expand All @@ -43,5 +42,4 @@ jobs:
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
COINBASE_COMMERCE_KEY: ${{ secrets.COINBASE_COMMERCE_KEY }}
run: |
pnpm run integrationTests
run: pnpm run integrationTests

0 comments on commit 4265be3

Please sign in to comment.