Skip to content

Commit 7e9b317

Browse files
committed
chore: use github actions for CI
1 parent 4133a6c commit 7e9b317

File tree

3 files changed

+21
-37
lines changed

3 files changed

+21
-37
lines changed

.github/workflows/config.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on: [ push, pull_request ]
44

55
jobs:
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

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
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

0 commit comments

Comments
 (0)