-
Notifications
You must be signed in to change notification settings - Fork 5k
59 lines (51 loc) · 1.89 KB
/
integrationTests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Integration Tests
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
integration-tests:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9.15.0
- name: Cache pnpm
uses: actions/cache@v4
with:
path: |
~/.pnpm-store
**/node_modules
key: ${{ runner.os }}-pnpm-${{ runner.arch }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-pnpm-${{ runner.arch }}-${{ hashFiles('**/pnpm-lock.yaml') }}-
${{ runner.os }}-pnpm-${{ runner.arch }}-
- name: Cache plugin dist
uses: actions/cache@v4
with:
path: |
**/packages/plugin-*/dist
key: ${{ runner.os }}-plugin-dist-${{ runner.arch }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-plugin-dist-${{ runner.arch }}-
- uses: actions/setup-node@v4
with:
node-version: "23.3.0"
- name: Install dependencies
run: |
pnpm config set store-dir ~/.pnpm-store
pnpm install -r --no-frozen-lockfile
- name: Build packages
run: pnpm build
- name: Run integration tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
COINBASE_COMMERCE_KEY: ${{ secrets.COINBASE_COMMERCE_KEY }}
run: |
pnpm run integrationTests