File tree Expand file tree Collapse file tree 2 files changed +72
-0
lines changed Expand file tree Collapse file tree 2 files changed +72
-0
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ pull_request : {}
3
+ push :
4
+ branches : [main]
5
+
6
+ name : Lint
7
+
8
+ jobs :
9
+ lint :
10
+ name : Lint
11
+ runs-on : ubuntu-latest
12
+ timeout-minutes : 10
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - uses : actions/setup-node@v3
16
+ with :
17
+ node-version : ^18.6.0
18
+ cache : yarn
19
+ cache-dependency-path : |
20
+ yarn.lock
21
+ - name : Get yarn cache directory path
22
+ id : yarn-cache-dir-path
23
+ run : |
24
+ echo dir="$(yarn cache dir)" >> $GITHUB_OUTPUT
25
+ echo version="$(yarn cache dir)" >> $GITHUB_OUTPUT
26
+ - uses : actions/cache@v3
27
+ with :
28
+ path : |
29
+ **/node_modules
30
+ ${{ steps.yarn-cache-dir-path.outputs.dir }}
31
+ key : ${{ runner.os }}-yarn-${{ steps.yarn-cache-dir-path.outputs.version }}-${{ hashFiles('**/yarn.lock') }}
32
+ - name : Yarn install
33
+ run : yarn install
34
+ - name : Verify format
35
+ run : yarn prettier --check .
36
+ - name : Lint
37
+ run : yarn run eslint --max-warnings 0 .
Original file line number Diff line number Diff line change
1
+ on :
2
+ pull_request : {}
3
+ push :
4
+ branches : [main]
5
+
6
+ name : Test
7
+
8
+ jobs :
9
+ test :
10
+ name : Test
11
+ runs-on : ubuntu-latest
12
+ timeout-minutes : 10
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - uses : actions/setup-node@v3
16
+ with :
17
+ node-version : ^18.6.0
18
+ cache : yarn
19
+ cache-dependency-path : |
20
+ yarn.lock
21
+ - name : Get yarn cache directory path
22
+ id : yarn-cache-dir-path
23
+ run : |
24
+ echo dir="$(yarn cache dir)" >> $GITHUB_OUTPUT
25
+ echo version="$(yarn cache dir)" >> $GITHUB_OUTPUT
26
+ - uses : actions/cache@v3
27
+ with :
28
+ path : |
29
+ **/node_modules
30
+ ${{ steps.yarn-cache-dir-path.outputs.dir }}
31
+ key : ${{ runner.os }}-yarn-${{ steps.yarn-cache-dir-path.outputs.version }}-${{ hashFiles('**/yarn.lock') }}
32
+ - name : Yarn install
33
+ run : yarn install
34
+ - name : Run tests
35
+ run : yarn jest -w2
You can’t perform that action at this time.
0 commit comments