File tree Expand file tree Collapse file tree 2 files changed +52
-17
lines changed Expand file tree Collapse file tree 2 files changed +52
-17
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ - push
3
+ - pull_request
4
+
5
+ jobs :
6
+ cache-and-install :
7
+ runs-on : ubuntu-latest
8
+
9
+ steps :
10
+ - name : Checkout
11
+ uses : actions/checkout@v3
12
+
13
+ - name : Install Node.js
14
+ uses : actions/setup-node@v3
15
+ with :
16
+ node-version : 16
17
+
18
+ - uses : pnpm/action-setup@v2
19
+ name : Install pnpm
20
+ id : pnpm-install
21
+ with :
22
+ version : 7
23
+ run_install : false
24
+
25
+ - name : Get pnpm store directory
26
+ id : pnpm-cache
27
+ shell : bash
28
+ run : |
29
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
30
+
31
+ - uses : actions/cache@v3
32
+ name : Setup pnpm cache
33
+ with :
34
+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
35
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36
+ restore-keys : |
37
+ ${{ runner.os }}-pnpm-store-
38
+
39
+ - name : Install dependencies
40
+ run : pnpm install
41
+
42
+ - name : Format
43
+ run : pnpm format:check
44
+
45
+ - name : Lint
46
+ run : pnpm format:check
47
+
48
+ - name : Tests
49
+ run : pnpm test
50
+
51
+ - name : Coverage
52
+ uses : codecov/codecov-action@v3
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments