Skip to content

Commit df62d4e

Browse files
committed
fix workflow for ci test
1 parent 048984f commit df62d4e

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Integration Test (Build)
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 22.2.0
23+
24+
- name: Install pnpm
25+
run: |
26+
npm install -g pnpm
27+
28+
- name: Cache pnpm store
29+
uses: actions/cache@v3
30+
with:
31+
path: ~/.pnpm-store
32+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
33+
restore-keys: |
34+
${{ runner.os }}-pnpm-store-
35+
36+
- name: Install dependencies
37+
if: steps.pnpm-cache.outputs.cache-hit != 'true'
38+
run: |
39+
pnpm install
40+
41+
- name: Build the application
42+
run: |
43+
pnpm run build
44+
45+
- name: Save build artifacts
46+
if: success()
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: build
50+
path: ./build

0 commit comments

Comments
 (0)