File tree Expand file tree Collapse file tree 1 file changed +13
-36
lines changed
Expand file tree Collapse file tree 1 file changed +13
-36
lines changed Original file line number Diff line number Diff line change @@ -2,50 +2,27 @@ name: CI
22
33on :
44 push :
5- paths :
6- - ' lib/**'
7- - ' tests/**'
85 pull_request :
96
107jobs :
118 lint :
12- name : Lint code
9+ name : Check linting and formatting
1310 runs-on : ubuntu-latest
1411 steps :
15- - uses : actions/checkout@v3
16-
17- - name : Set Node.js 18.x
18- uses : actions/setup-node@v3
19- with :
20- node-version : 18.x
21-
22- - name : Install packages
23- uses : borales/actions-yarn@v4
24- with :
25- cmd : install
26-
27- - name : Run tests
28- uses : borales/actions-yarn@v4
29- with :
30- cmd : lint
12+ - uses : actions/checkout@v4
13+ - uses : actions/setup-node@v4
14+ - run : |
15+ yarn
16+ yarn prettier . --debug-check
17+ - run : |
18+ yarn lint
3119
3220 test :
3321 name : Test rules
3422 runs-on : ubuntu-latest
3523 steps :
36- - uses : actions/checkout@v3
37-
38- - name : Set Node.js 18.x
39- uses : actions/setup-node@v3
40- with :
41- node-version : 18.x
42-
43- - name : Install packages
44- uses : borales/actions-yarn@v4
45- with :
46- cmd : install
47-
48- - name : Run tests
49- uses : borales/actions-yarn@v4
50- with :
51- cmd : test
24+ - uses : actions/checkout@v4
25+ - uses : actions/setup-node@v4
26+ - run : |
27+ yarn
28+ yarn test
You can’t perform that action at this time.
0 commit comments