File tree Expand file tree Collapse file tree 9 files changed +87
-7
lines changed Expand file tree Collapse file tree 9 files changed +87
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+ branches : [main]
8
+
9
+ jobs :
10
+ ci :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Checkout
15
+ uses : actions/checkout@v4
16
+
17
+ - name : Setup Node.js
18
+ uses : actions/setup-node@v4
19
+ with :
20
+ node-version : ' 20'
21
+
22
+ - name : Setup pnpm
23
+ uses : pnpm/action-setup@v4
24
+ with :
25
+ version : 10.7.0
26
+
27
+ - name : Get pnpm store directory
28
+ shell : bash
29
+ run : |
30
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
31
+
32
+ - name : Setup pnpm cache
33
+ uses : actions/cache@v4
34
+ with :
35
+ path : ${{ env.STORE_PATH }}
36
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
37
+ restore-keys : |
38
+ ${{ runner.os }}-pnpm-store-
39
+
40
+ - name : Install dependencies
41
+ run : pnpm install --frozen-lockfile
42
+
43
+ - name : Type check
44
+ run : pnpm typecheck
45
+
46
+ - name : Lint
47
+ run : pnpm lint
48
+
49
+ - name : Test
50
+ run : pnpm test
51
+
52
+ - name : Build
53
+ run : pnpm build
Original file line number Diff line number Diff line change 6
6
"build" : " react-router build" ,
7
7
"dev" : " react-router dev" ,
8
8
"start" : " react-router-serve ./build/server/index.js" ,
9
- "typecheck" : " react-router typegen && tsc"
9
+ "typecheck" : " react-router typegen && tsc" ,
10
+ "lint" : " echo 'No linting configured for demo-react-router app'" ,
11
+ "test" : " echo 'No tests for demo-react-router app'"
10
12
},
11
13
"dependencies" : {
12
14
"@heroicons/react" : " ^2.2.0" ,
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"dev" : " vite" ,
8
8
"build" : " tsc && vite build" ,
9
- "preview" : " vite preview"
9
+ "preview" : " vite preview" ,
10
+ "lint" : " echo 'No linting configured for demo app'" ,
11
+ "test" : " echo 'No tests for demo app'" ,
12
+ "typecheck" : " tsc --noEmit"
10
13
},
11
14
"dependencies" : {
12
15
"@heroicons/react" : " ^2.2.0" ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : [" next/core-web-vitals" ]
3
+ }
Original file line number Diff line number Diff line change 6
6
"dev" : " next dev" ,
7
7
"build" : " next build" ,
8
8
"start" : " next start" ,
9
- "lint" : " next lint"
9
+ "lint" : " next lint" ,
10
+ "test" : " echo 'No tests for docs app'" ,
11
+ "typecheck" : " tsc --noEmit"
10
12
},
11
13
"browserslist" : " defaults, not ie <= 11" ,
12
14
"dependencies" : {
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 13
13
"build" : " turbo run build" ,
14
14
"lint" : " turbo run lint" ,
15
15
"test" : " turbo run test" ,
16
+ "typecheck" : " turbo run typecheck" ,
16
17
"format" : " prettier --write ."
17
18
},
18
19
"prettier" : {
Original file line number Diff line number Diff line change 30
30
"scripts" : {
31
31
"build" : " tsup src/index.tsx --dts --format esm,cjs" ,
32
32
"lint" : " eslint" ,
33
- "test" : " vitest"
33
+ "test" : " vitest" ,
34
+ "typecheck" : " tsc --noEmit"
34
35
},
35
36
"prettier" : {
36
37
"printWidth" : 80 ,
Original file line number Diff line number Diff line change 5
5
"dependsOn" : [
6
6
" ^build"
7
7
],
8
- "outputs" : [" dist/**" , " build/**" ]
8
+ "outputs" : [" dist/**" , " build/**" , " .next/** " ]
9
9
},
10
- "lint" : {},
11
- "test" : {}
10
+ "lint" : {
11
+ "outputs" : [],
12
+ "cache" : false
13
+ },
14
+ "test" : {
15
+ "outputs" : [" coverage/**" ],
16
+ "cache" : false
17
+ },
18
+ "typecheck" : {
19
+ "outputs" : [],
20
+ "cache" : false
21
+ },
22
+ "dev" : {
23
+ "cache" : false ,
24
+ "persistent" : true
25
+ }
12
26
}
13
27
}
You can’t perform that action at this time.
0 commit comments