File tree Expand file tree Collapse file tree 2 files changed +34
-34
lines changed
Expand file tree Collapse file tree 2 files changed +34
-34
lines changed Original file line number Diff line number Diff line change 11name : Lint Code Base
22on :
3- push :
4- branches :
5- - " ** "
6- - " !main"
7- pull_request :
8- branches :
9- - " ** "
3+ push :
4+ branches :
5+ - ' ** '
6+ - ' !main'
7+ pull_request :
8+ branches :
9+ - ' ** '
1010
1111jobs :
12- lint :
13- name : Linting
14- runs-on : ubuntu-22.04
15- steps :
16- - name : Checkout code
17- uses : actions/checkout@v4
12+ lint :
13+ name : Linting
14+ runs-on : ubuntu-22.04
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
1818
19- - name : Set up Node.js
20- uses : actions/setup-node@v4
21- with :
22- node-version : 18
23- cache : " npm"
19+ - name : Set up Node.js
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : 18
23+ cache : ' npm'
2424
25- - name : Install dependencies
26- run : npm ci
25+ - name : Install dependencies
26+ run : npm ci
2727
28- - name : Run ESLint
29- run : npm run lint
28+ - name : Run ESLint
29+ run : npm run lint
3030
31- # - name: Run tests
32- # run: npm run test:run
31+ # - name: Run tests
32+ # run: npm run test:run
3333
34- - name : Cache node modules
35- uses : actions/cache@v3
36- with :
37- path : |
38- ~/.npm
39- node_modules
40- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
34+ - name : Cache node modules
35+ uses : actions/cache@v3
36+ with :
37+ path : |
38+ ~/.npm
39+ node_modules
40+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Original file line number Diff line number Diff line change 11name : test
22
3- on :
3+ on :
44 pull_request :
55 branches : [main]
66 types : [opened, synchronize]
77 push :
8- branches : [main]
8+ branches : [main]
99jobs :
1010 test :
1111 runs-on : ubuntu-22.04
3232 - name : install dependencies
3333 run : npm install
3434 - name : execute
35- run : npm run lint
35+ run : npm run lint
You can’t perform that action at this time.
0 commit comments