Skip to content

Commit cfe784f

Browse files
committedMar 30, 2023
chore: update workflows config.
1 parent 56dae8f commit cfe784f

File tree

2 files changed

+82
-1
lines changed

2 files changed

+82
-1
lines changed
 

‎.github/workflows/ci.yml

+80-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,86 @@ name: Node.js CI
33
on: push
44

55
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:
786
name: Ubuntu Node.js ${{ matrix.node-version }}
887
# Containers must run in Linux based operating systems
988
runs-on: ubuntu-latest

‎.github/workflows/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ jobs:
131131
132132
```bash
133133
npm i tsbb@${{steps.create_tag.outputs.versionNumber}}
134+
npm i create-tsbb@${{steps.create_tag.outputs.versionNumber}}
135+
npm init tsbb@latest my-app -- --example typenexus
134136
```
135137
136138
${{ steps.changelog.outputs.changelog }}

0 commit comments

Comments
 (0)
Please sign in to comment.