File tree Expand file tree Collapse file tree 3 files changed +21
-37
lines changed Expand file tree Collapse file tree 3 files changed +21
-37
lines changed Original file line number Diff line number Diff line change 11name : CI
22
3- on : [push, pull_request]
3+ on : [ push, pull_request ]
44
55jobs :
66 test :
77 runs-on : ubuntu-latest
8+ timeout-minutes : 15
89 steps :
910 - uses : actions/checkout@v2
1011 - uses : actions/setup-node@v2.1.4
1112 with :
1213 node-version : 14
13- - run : |
14- npm install
15- - run : |
16- npm run lint
17- - run : |
18- npm run test
19- - run : |
20- npm run integration-test
14+
15+ - name : Cache dependencies
16+ uses : actions/cache@v2
17+ with :
18+ path : ~/.npm
19+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
20+ restore-keys : |
21+ ${{ runner.os }}-node-
22+
23+ - run : npm install
24+ - run : npm run lint
25+ - run : npm run test -- --coverageDirectory coverage/unit_tests
26+ - run : npm run integration-test -- --coverageDirectory coverage/integration_tests
2127 env :
2228 AWS_ACCESS_KEY_ID : ${{secrets.AWS_ACCESS_KEY_ID}}
2329 AWS_SECRET_ACCESS_KEY : ${{secrets.AWS_SECRET_ACCESS_KEY}}
30+
2431 - uses : actions/upload-artifact@v2
2532 with :
2633 name : code-coverage-report
27- path : reports
34+ path : coverage
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11![ serverless] ( http://public.serverless.com/badges/v3.svg )
2- [ ![ Build Status] ( https://travis-ci.org/serverless-operations/serverless-apigateway-service-proxy.svg?branch=master )] ( https://travis-ci.org/horike37/serverless-apigateway-service-proxy ) [ ![ npm version] ( https://badge.fury.io/js/serverless-apigateway-service-proxy.svg )] ( https://badge.fury.io/js/serverless-apigateway-service-proxy ) [ ![ Coverage Status] ( https://coveralls.io/repos/github/horike37/serverless-apigateway-service-proxy/badge.svg?branch=master )] ( https://coveralls.io/github/horike37/serverless-apigateway-service-proxy?branch=master ) [ ![ MIT License] ( http://img.shields.io/badge/license-MIT-blue.svg?style=flat )] ( LICENSE )
2+ ![ workflow status] ( https://github.com/serverless-operations/serverless-apigateway-service-proxy/actions/workflows/config/badge.svg )
3+ [ ![ npm version] ( https://badge.fury.io/js/serverless-apigateway-service-proxy.svg )] ( https://badge.fury.io/js/serverless-apigateway-service-proxy )
4+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/horike37/serverless-apigateway-service-proxy/badge.svg?branch=master )] ( https://coveralls.io/github/horike37/serverless-apigateway-service-proxy?branch=master )
5+ [ ![ MIT License] ( http://img.shields.io/badge/license-MIT-blue.svg?style=flat )] ( LICENSE )
36
47# Serverless APIGateway Service Proxy
58
You can’t perform that action at this time.
0 commit comments