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 : TypeCheck, Lint, and Test
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ timeout-minutes : 5
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v3
16+
17+ - name : Install Node.js
18+ uses : actions/setup-node@v3
19+ with :
20+ node-version-file : ' package.json'
21+
22+ - name : Install pnpm
23+ uses : pnpm/action-setup@v2.2.4
24+ with :
25+ version : 7
26+ id : pnpm-install
27+
28+ - name : Setup pnpm cache
29+ uses : actions/cache@v3
30+ id : pnpm-cache
31+ with :
32+ path : node_modules
33+ key : ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
34+ restore-keys : |
35+ ${{ runner.os }}-pnpm-
36+
37+ - name : Install dependencies
38+ if : ${{ steps.pnpm-cache.outputs.cache-hit != 'true' }}
39+ run : pnpm install
40+
41+ - name : Run lint
42+ run : |
43+ pnpm lint
44+ pnpm format
45+
46+ - name : Run typecheck
47+ run : pnpm typecheck
48+
49+ - name : Run test
50+ run : pnpm test
You can’t perform that action at this time.
0 commit comments