Skip to content

Commit a0dd006

Browse files
update dependencies and build pipeline
1 parent b24243d commit a0dd006

File tree

8 files changed

+9440
-15137
lines changed

8 files changed

+9440
-15137
lines changed

.github/workflows/master.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Master Workflow
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node-version: [10.x, 12.x, 14.x]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
- run: npm ci
26+
- run: npm run test:coverage
27+
- name: Upload Code coverage report
28+
uses: codecov/codecov-action@v1
29+
with:
30+
token: ${{ secrets.codecov }}
31+
file: ./reports/coverage/*.json
32+

.github/workflows/npm-publish.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Publish Workflow
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
publish-npm:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: 12
18+
registry-url: https://registry.npmjs.org/
19+
- run: npm ci
20+
- run: npm test
21+
- run: npm publish
22+
env:
23+
NODE_AUTH_TOKEN: ${{secrets.npm}}

.npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ coverage
88
tsconfig.json
99
tsfmt.json
1010
tslint.json
11-
test
11+
test
12+
.github

.travis.yml

-14
This file was deleted.

README.MD

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![npm version](https://badge.fury.io/js/typescript-rest-swagger.svg)](https://badge.fury.io/js/typescript-rest-swagger)
2-
[![Build Status](https://travis-ci.org/thiagobustamante/typescript-rest-swagger.svg?branch=master)](https://travis-ci.org/thiagobustamante/typescript-rest-swagger)
2+
![Master Workflow](https://github.com/thiagobustamante/typescript-rest-swagger/workflows/Master%20Workflow/badge.svg)
33
[![Coverage Status](https://coveralls.io/repos/github/thiagobustamante/typescript-rest-swagger/badge.svg?branch=master)](https://coveralls.io/github/thiagobustamante/typescript-rest-swagger?branch=master)
44
[![Known Vulnerabilities](https://snyk.io/test/github/thiagobustamante/typescript-rest-swagger/badge.svg?targetFile=package.json)](https://snyk.io/test/github/thiagobustamante/typescript-rest-swagger?targetFile=package.json)
55

0 commit comments

Comments
 (0)