File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Validate tests for pull request
2+
3+ on :
4+ pull_request :
5+ types : [ opened, synchronize, reopened ]
6+
7+ jobs :
8+ test :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - name : Checkout code
13+ uses : actions/checkout@v4
14+ - name : Install pnpm
15+ uses : pnpm/action-setup@v4
16+ with :
17+ version : 10
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : 20
21+ cache : ' pnpm'
22+ - name : Get pnpm store directory
23+ shell : bash
24+ run : |
25+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
26+ - name : Setup pnpm cache
27+ uses : actions/cache@v4
28+ with :
29+ path : ${{ env.STORE_PATH }}
30+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
31+ restore-keys : |
32+ ${{ runner.os }}-pnpm-store-
33+ - name : Install dependencies
34+ run : pnpm install
35+ - name : Run tests
36+ run : pnpm run test
You can’t perform that action at this time.
0 commit comments