fix: 1、添加 rimraf 解决pnpm本地无rm的问题。 2、拓展 IRequestOptions 定义 #227
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NodeCI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*.*.*" | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: npm install and build swagger-axios-codegen | |
run: | | |
npm install | |
npm run build | |
- name: build api,and test | |
run: | | |
cd example | |
npm i | |
npm run build:api | |
env: | |
CI: true |