File tree Expand file tree Collapse file tree 7 files changed +1237
-73
lines changed
Expand file tree Collapse file tree 7 files changed +1237
-73
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches : [main, master]
6+ pull_request :
7+ branches : [main, master]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - uses : actions/setup-node@v4
16+ with :
17+ node-version : ' 20'
18+ cache : ' npm'
19+
20+ - run : npm ci
21+ - run : npm run build
Original file line number Diff line number Diff line change 1+ name : Lint
2+
3+ on :
4+ workflow_run :
5+ workflows : [Build]
6+ types : [completed]
7+ branches : [main, master]
8+
9+ jobs :
10+ lint :
11+ runs-on : ubuntu-latest
12+ if : github.event.workflow_run.conclusion == 'success'
13+ steps :
14+ - uses : actions/checkout@v4
15+ with :
16+ ref : ${{ github.event.workflow_run.head_sha }}
17+
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : ' 20'
21+ cache : ' npm'
22+
23+ - run : npm ci
24+ - run : npm run lint
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ workflow_run :
5+ workflows : [Build]
6+ types : [completed]
7+ branches : [main, master]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ if : github.event.workflow_run.conclusion == 'success'
13+ steps :
14+ - uses : actions/checkout@v4
15+ with :
16+ ref : ${{ github.event.workflow_run.head_sha }}
17+
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : ' 20'
21+ cache : ' npm'
22+
23+ - run : npm ci
24+ - run : npm test
Original file line number Diff line number Diff line change 1+ import eslint from '@eslint/js' ;
2+ import tseslint from 'typescript-eslint' ;
3+
4+ export default tseslint . config (
5+ eslint . configs . recommended ,
6+ ...tseslint . configs . recommended ,
7+ {
8+ languageOptions : {
9+ parserOptions : {
10+ projectService : true ,
11+ tsconfigRootDir : import . meta. dirname ,
12+ } ,
13+ } ,
14+ } ,
15+ {
16+ files : [ '**/__tests__/**/*.test.ts' ] ,
17+ extends : [ tseslint . configs . disableTypeChecked ] ,
18+ }
19+ ) ;
You can’t perform that action at this time.
0 commit comments