File tree Expand file tree Collapse file tree 3 files changed +1578
-0
lines changed Expand file tree Collapse file tree 3 files changed +1578
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+
13+ strategy :
14+ matrix :
15+ node-version : [18, 20]
16+
17+ steps :
18+ - name : Checkout code
19+ uses : actions/checkout@v4
20+
21+ - name : Setup Node.js ${{ matrix.node-version }}
22+ uses : actions/setup-node@v4
23+ with :
24+ node-version : ${{ matrix.node-version }}
25+
26+ - name : Setup pnpm
27+ uses : pnpm/action-setup@v4
28+ with :
29+ version : 8
30+
31+ - name : Get pnpm store directory
32+ shell : bash
33+ run : |
34+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
35+
36+ - name : Setup pnpm cache
37+ uses : actions/cache@v4
38+ with :
39+ path : ${{ env.STORE_PATH }}
40+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
41+ restore-keys : |
42+ ${{ runner.os }}-pnpm-store-
43+
44+ - name : Install dependencies
45+ run : pnpm install --frozen-lockfile
46+
47+ - name : Run tests
48+ run : pnpm test
49+
50+ - name : Build project
51+ run : pnpm build
Original file line number Diff line number Diff line change 2727 "@rollup/plugin-commonjs" : " 25.0.7" ,
2828 "@rollup/plugin-typescript" : " 11.1.6" ,
2929 "typescript" : " 5.4.5" ,
30+ "tslib" : " 2.6.2" ,
3031 "vitest" : " 1.6.0"
3132 }
3233}
You can’t perform that action at this time.
0 commit comments