Skip to content

Commit 703780e

Browse files
committed
chore(CI): update CI to use pnpm instead of bun
1 parent db98dc5 commit 703780e

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

.github/workflows/e2e.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,17 @@ jobs:
2323
with:
2424
fetch-depth: 1
2525

26-
- name: Setup Bun
27-
uses: oven-sh/setup-bun@v1
26+
- name: Setup Node
27+
uses: actions/setup-node@v4
2828
with:
29-
bun-version: latest
29+
node-version: '20'
30+
cache: pnpm
31+
32+
- name: Setup pnpm
33+
uses: pnpm/action-setup@v4
34+
with:
35+
version: 9
36+
run_install: false
3037

3138
- name: Install rust
3239
uses: actions-rs/toolchain@v1
@@ -40,20 +47,20 @@ jobs:
4047
with:
4148
version: 'latest'
4249

43-
- name: Install Bun dependencies
44-
run: bun install
50+
- name: Install dependencies
51+
run: pnpm install --frozen-lockfile
4552

4653
- name: Build project
47-
run: bun run build
54+
run: pnpm run build
4855

4956
- name: Run health check for naga-dev
50-
run: NETWORK=naga-dev bun run test:e2e all
57+
run: NETWORK=naga-dev pnpm run test:e2e:ci -- all
5158
timeout-minutes: 10
5259

5360
# - name: Run health check for naga-test
54-
# run: NETWORK=naga-test bun run test:e2e all
61+
# run: NETWORK=naga-test pnpm run test:e2e:ci -- all
5562
# timeout-minutes: 10
5663

5764
- name: Run health check for naga-staging
58-
run: NETWORK=naga-staging bun run test:e2e all
59-
timeout-minutes: 10
65+
run: NETWORK=naga-staging pnpm run test:e2e:ci -- all
66+
timeout-minutes: 10

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"lint:fix": "npx nx run-many --target=lint --all -- --fix",
1212
"format:check": "npx nx format:check --all",
1313
"test:e2e": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 -t",
14-
"test:custom": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000"
14+
"test:custom": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000",
15+
"test:e2e:ci": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} npx jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 -t"
1516
},
1617
"private": true,
1718
"dependencies": {

0 commit comments

Comments
 (0)