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+ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
13name : ci
2- on : [push, pull_request]
4+
5+ on :
6+ pull_request :
7+ branches : [ main ]
8+ push :
9+ branches : [ main ]
10+
311permissions :
412 contents : read
13+
514jobs :
15+ lint :
16+ runs-on : ubuntu-latest
17+ name : Check code style
18+ steps :
19+ - uses : actions/checkout@v4
20+ - uses : actions/setup-node@v4
21+ with :
22+ node-version-file : ' .nvmrc'
23+ cache : ' npm'
24+ - run : npm ci
25+ - run : node --run lint
26+
627 build-and-test :
728 runs-on : ubuntu-latest
829 name : Build and test
930 steps :
1031 - uses : actions/checkout@v4
1132 - uses : actions/setup-node@v4
12- - run : npm install
13- - run : npm test
14- - run : npm run test:test262
33+ with :
34+ node-version-file : ' .nvmrc'
35+ cache : ' npm'
36+ - run : npm ci
37+ - run : node --run test
38+ - run : node --run test:test262
Original file line number Diff line number Diff line change 1+ 22
Original file line number Diff line number Diff line change 2929 "generate:identifier-regex" : " node bin/generate-identifier-regex.js" ,
3030 "generate:unicode-script-values" : " node bin/generate-unicode-script-values.js" ,
3131 "lint" : " eslint ." ,
32+ "lint:fix" : " eslint . --fix" ,
3233 "prepare" : " npm run test" ,
3334 "pretest" : " npm run build:main && npm run build:loose" ,
34- "test" : " node test/run.js && npm run lint " ,
35+ "test" : " node test/run.js" ,
3536 "test:test262" : " node bin/run_test262.js"
3637 },
3738 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments