Skip to content

Commit 9115475

Browse files
ci(examples): Test examples in CI (#591)
* Remove NX_CLOUD_AUTH_TOKEN * Run tests on examples
1 parent 0bc3c98 commit 9115475

19 files changed

+79
-101
lines changed

.github/workflows/ci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ concurrency:
1515

1616
env:
1717
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
18-
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}
1918

2019
jobs:
2120
test-and-publish:

.github/workflows/pr.yml

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ concurrency:
1313

1414
env:
1515
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
16-
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}
1716

1817
jobs:
1918
test:

examples/react/ui-libraries/src/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as React from 'react'
21
import { createRoot } from 'react-dom/client'
32
import { createTheme } from '@mui/material/styles'
43
import { red } from '@mui/material/colors'

examples/react/ui-libraries/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@
1919
"noUnusedParameters": true,
2020
"noFallthroughCasesInSwitch": true
2121
},
22-
"include": ["src"],
23-
"references": [{ "path": "./tsconfig.node.json" }]
22+
"include": ["src", "vite.config.ts"]
2423
}

examples/react/ui-libraries/tsconfig.node.json

-10
This file was deleted.

examples/solid/simple/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@
2121
"noUnusedParameters": true,
2222
"noFallthroughCasesInSwitch": true
2323
},
24-
"include": ["src"],
25-
"references": [{ "path": "./tsconfig.node.json" }]
24+
"include": ["src", "vite.config.ts"]
2625
}

examples/solid/simple/tsconfig.node.json

-10
This file was deleted.

examples/solid/valibot/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@
2121
"noUnusedParameters": true,
2222
"noFallthroughCasesInSwitch": true
2323
},
24-
"include": ["src"],
25-
"references": [{ "path": "./tsconfig.node.json" }]
24+
"include": ["src", "vite.config.ts"]
2625
}

examples/solid/valibot/tsconfig.node.json

-10
This file was deleted.

examples/solid/yup/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@
2121
"noUnusedParameters": true,
2222
"noFallthroughCasesInSwitch": true
2323
},
24-
"include": ["src"],
25-
"references": [{ "path": "./tsconfig.node.json" }]
24+
"include": ["src", "vite.config.ts"]
2625
}

examples/solid/yup/tsconfig.node.json

-10
This file was deleted.

examples/solid/zod/tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@
2121
"noUnusedParameters": true,
2222
"noFallthroughCasesInSwitch": true
2323
},
24-
"include": ["src"],
25-
"references": [{ "path": "./tsconfig.node.json" }]
24+
"include": ["src", "vite.config.ts"]
2625
}

examples/solid/zod/tsconfig.node.json

-10
This file was deleted.

examples/vue/simple/tsconfig.json

+18-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
4-
"module": "esnext",
5-
"moduleResolution": "node",
6-
"strict": true,
7-
"jsx": "preserve",
8-
"sourceMap": true,
3+
"target": "ES2020",
4+
"useDefineForClassFields": true,
5+
"module": "ESNext",
6+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
7+
"skipLibCheck": true,
8+
9+
/* Bundler mode */
10+
"moduleResolution": "bundler",
11+
"allowImportingTsExtensions": true,
912
"resolveJsonModule": true,
10-
"esModuleInterop": true,
11-
"lib": ["esnext", "dom"],
12-
"types": ["vite/client"]
13+
"isolatedModules": true,
14+
"noEmit": true,
15+
"jsx": "preserve",
16+
17+
/* Linting */
18+
"strict": true,
19+
"noUnusedLocals": true,
20+
"noUnusedParameters": true,
21+
"noFallthroughCasesInSwitch": true
1322
},
1423
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"]
1524
}

examples/vue/valibot/tsconfig.json

+18-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
4-
"module": "esnext",
5-
"moduleResolution": "node",
6-
"strict": true,
7-
"jsx": "preserve",
8-
"sourceMap": true,
3+
"target": "ES2020",
4+
"useDefineForClassFields": true,
5+
"module": "ESNext",
6+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
7+
"skipLibCheck": true,
8+
9+
/* Bundler mode */
10+
"moduleResolution": "bundler",
11+
"allowImportingTsExtensions": true,
912
"resolveJsonModule": true,
10-
"esModuleInterop": true,
11-
"lib": ["esnext", "dom"],
12-
"types": ["vite/client"]
13+
"isolatedModules": true,
14+
"noEmit": true,
15+
"jsx": "preserve",
16+
17+
/* Linting */
18+
"strict": true,
19+
"noUnusedLocals": true,
20+
"noUnusedParameters": true,
21+
"noFallthroughCasesInSwitch": true
1322
},
1423
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"]
1524
}

examples/vue/yup/tsconfig.json

+18-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
4-
"module": "esnext",
5-
"moduleResolution": "node",
6-
"strict": true,
7-
"jsx": "preserve",
8-
"sourceMap": true,
3+
"target": "ES2020",
4+
"useDefineForClassFields": true,
5+
"module": "ESNext",
6+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
7+
"skipLibCheck": true,
8+
9+
/* Bundler mode */
10+
"moduleResolution": "bundler",
11+
"allowImportingTsExtensions": true,
912
"resolveJsonModule": true,
10-
"esModuleInterop": true,
11-
"lib": ["esnext", "dom"],
12-
"types": ["vite/client"]
13+
"isolatedModules": true,
14+
"noEmit": true,
15+
"jsx": "preserve",
16+
17+
/* Linting */
18+
"strict": true,
19+
"noUnusedLocals": true,
20+
"noUnusedParameters": true,
21+
"noFallthroughCasesInSwitch": true
1322
},
1423
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"]
1524
}

examples/vue/zod/tsconfig.json

+18-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
4-
"module": "esnext",
5-
"moduleResolution": "node",
6-
"strict": true,
7-
"jsx": "preserve",
8-
"sourceMap": true,
3+
"target": "ES2020",
4+
"useDefineForClassFields": true,
5+
"module": "ESNext",
6+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
7+
"skipLibCheck": true,
8+
9+
/* Bundler mode */
10+
"moduleResolution": "bundler",
11+
"allowImportingTsExtensions": true,
912
"resolveJsonModule": true,
10-
"esModuleInterop": true,
11-
"lib": ["esnext", "dom"],
12-
"types": ["vite/client"]
13+
"isolatedModules": true,
14+
"noEmit": true,
15+
"jsx": "preserve",
16+
17+
/* Linting */
18+
"strict": true,
19+
"noUnusedLocals": true,
20+
"noUnusedParameters": true,
21+
"noFallthroughCasesInSwitch": true
1322
},
1423
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue"]
1524
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...'); process.exit(1)}\" || npx -y only-allow pnpm",
1010
"install:csb": "corepack enable && pnpm install --frozen-lockfile",
1111
"test": "pnpm run test:ci",
12-
"test:pr": "nx affected --targets=test:format,test:eslint,test:lib,test:types,build,test:build --exclude=examples/**",
13-
"test:ci": "nx run-many --targets=test:format,test:eslint,test:lib,test:types,build,test:build --exclude=examples/**",
12+
"test:pr": "nx affected --targets=test:format,test:eslint,test:lib,test:types,test:build,build",
13+
"test:ci": "nx run-many --targets=test:format,test:eslint,test:lib,test:types,test:build,build",
1414
"test:eslint": "nx affected --target=test:eslint",
1515
"test:format": "pnpm run prettier --check",
1616
"test:lib": "nx affected --target=test:lib --exclude=examples/**",

0 commit comments

Comments
 (0)