@@ -3,7 +3,86 @@ name: Node.js CI
3
3
on : push
4
4
5
5
jobs :
6
- test :
6
+ Windows :
7
+ name : Windows Node.js ${{ matrix.node-version }}
8
+ # Containers must run in Linux based operating systems
9
+ runs-on : windows-latest
10
+ strategy :
11
+ fail-fast : false
12
+ matrix :
13
+ node-version :
14
+ - 18
15
+ - 16
16
+ steps :
17
+ - uses : actions/checkout@v3
18
+ - uses : actions/setup-node@v3
19
+ with :
20
+ node-version : ${{ matrix.node-version }}
21
+
22
+ - run : npm install
23
+ - run : npm run build
24
+ - run : npm install
25
+ - run : npm run build:create-tsbb
26
+ - run : npm run build:template
27
+ - run : npm run type-check
28
+
29
+ - name : copy create-tsbb examples
30
+ working-directory : packages/create-tsbb
31
+ run : npm run copy
32
+
33
+ - name : example @example/babel-transform-ts
34
+ working-directory : examples/babel-transform-ts
35
+ run : npm run build
36
+
37
+ - name : example @example/basic
38
+ working-directory : examples/basic
39
+ run : npm run build && npm run coverage
40
+
41
+ - name : example @example/express
42
+ working-directory : examples/express
43
+ run : npm run build
44
+
45
+ - name : example @example/hapi
46
+ working-directory : examples/hapi
47
+ run : npm run build
48
+
49
+ - name : example @example/koa
50
+ working-directory : examples/koa
51
+ run : npm run build
52
+
53
+ - name : example @example/react-component
54
+ working-directory : examples/react-component
55
+ env :
56
+ CI : true
57
+ run : |
58
+ npm run build
59
+ npm run doc
60
+ npm run coverage
61
+
62
+ - name : example @example/react-component-tsx
63
+ working-directory : examples/react-component-tsx
64
+ env :
65
+ CI : true
66
+ run : |
67
+ npm run build
68
+ npm run doc
69
+ npm run coverage
70
+ cd lib/
71
+ ls -al
72
+
73
+ - name : example @example/typenexus
74
+ working-directory : examples/typenexus
75
+ run : npm run build && npm run coverage
76
+
77
+ - name : example @example/umd
78
+ working-directory : examples/umd
79
+ run : npm run build && npm run coverage
80
+
81
+ - name : example @example/vue
82
+ working-directory : examples/vue
83
+ run : npm run build
84
+
85
+ Ubuntu :
7
86
name : Ubuntu Node.js ${{ matrix.node-version }}
8
87
# Containers must run in Linux based operating systems
9
88
runs-on : ubuntu-latest
0 commit comments