File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ test :
11+ name : Test
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+
18+ - name : Setup Node.js
19+ uses : actions/setup-node@v4
20+ with :
21+ node-version : 20
22+
23+ - name : Setup pnpm
24+ uses : pnpm/action-setup@v4
25+ with :
26+ version : 8
27+
28+ - name : Get pnpm store directory
29+ shell : bash
30+ run : |
31+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
32+
33+ - name : Cache pnpm dependencies
34+ uses : actions/cache@v4
35+ with :
36+ path : ${{ env.STORE_PATH }}
37+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
38+ restore-keys : |
39+ ${{ runner.os }}-pnpm-store-
40+
41+ - name : Install dependencies
42+ run : pnpm install
43+
44+ - name : Build
45+ run : pnpm build
46+
47+ - name : Test
48+ run : pnpm test
You can’t perform that action at this time.
0 commit comments