Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 30, 2023
1 parent 56dae8f commit cfe784f
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 1 deletion.
81 changes: 80 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,86 @@ name: Node.js CI
on: push

jobs:
test:
Windows:
name: Windows Node.js ${{ matrix.node-version }}
# Containers must run in Linux based operating systems
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
node-version:
- 18
- 16
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- run: npm install
- run: npm run build
- run: npm install
- run: npm run build:create-tsbb
- run: npm run build:template
- run: npm run type-check

- name: copy create-tsbb examples
working-directory: packages/create-tsbb
run: npm run copy

- name: example @example/babel-transform-ts
working-directory: examples/babel-transform-ts
run: npm run build

- name: example @example/basic
working-directory: examples/basic
run: npm run build && npm run coverage

- name: example @example/express
working-directory: examples/express
run: npm run build

- name: example @example/hapi
working-directory: examples/hapi
run: npm run build

- name: example @example/koa
working-directory: examples/koa
run: npm run build

- name: example @example/react-component
working-directory: examples/react-component
env:
CI: true
run: |
npm run build
npm run doc
npm run coverage
- name: example @example/react-component-tsx
working-directory: examples/react-component-tsx
env:
CI: true
run: |
npm run build
npm run doc
npm run coverage
cd lib/
ls -al
- name: example @example/typenexus
working-directory: examples/typenexus
run: npm run build && npm run coverage

- name: example @example/umd
working-directory: examples/umd
run: npm run build && npm run coverage

- name: example @example/vue
working-directory: examples/vue
run: npm run build

Ubuntu:
name: Ubuntu Node.js ${{ matrix.node-version }}
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ jobs:
```bash
npm i tsbb@${{steps.create_tag.outputs.versionNumber}}
npm i create-tsbb@${{steps.create_tag.outputs.versionNumber}}
npm init tsbb@latest my-app -- --example typenexus
```
${{ steps.changelog.outputs.changelog }}
Expand Down

0 comments on commit cfe784f

Please sign in to comment.