File tree 8 files changed +9440
-15137
lines changed
8 files changed +9440
-15137
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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}}
Original file line number Diff line number Diff line change 8
8
tsconfig.json
9
9
tsfmt.json
10
10
tslint.json
11
- test
11
+ test
12
+ .github
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
[ ![ 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 )
3
3
[ ![ 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 )
4
4
[ ![ 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 )
5
5
You can’t perform that action at this time.
0 commit comments