typescript-swagger
Version:
Generate Swagger files from a decorator library like typescript-rest or a @decorators/express.
40 lines (30 loc) • 1.13 kB
YAML
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: main
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 15.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Build and install packages
run: |
npm ci
npm run build
npm run test:coverage
- name: Upload Code coverage report
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.codecov }}
file: ./writable/coverage/*.json