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 : Check
2+
3+ on :
4+ workflow_dispatch :
5+ pull_request :
6+ branches :
7+ - main
8+
9+ jobs :
10+ check :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+
16+ - name : Use Node.js
17+ uses : actions/setup-node@v2
18+ with :
19+ node-version : 20.11.0
20+
21+ - name : Install pnpm
22+ uses : pnpm/action-setup@v2
23+ id : pnpm-install
24+ with :
25+ version : 8.14.0
26+ run_install : false
27+
28+ - name : Configure pnpm cache
29+ id : pnpm-cache
30+ run : echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
31+ - uses : actions/cache@v3
32+ with :
33+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
34+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
35+ restore-keys : |
36+ ${{ runner.os }}-pnpm-store-
37+
38+ - name : Install deps
39+ run : pnpm install
40+
41+ - name : Configure Turbo cache
42+ uses : dtinth/setup-github-actions-caching-for-turbo@v1
43+
44+ - name : Build
45+ run : pnpm build
46+
47+ - name : Test
48+ run : pnpm test
49+
50+ - name : Require changeset to be present in PR
51+ run : pnpm changeset --since main
You can’t perform that action at this time.
0 commit comments