Skip to content

Commit 059db58

Browse files
authored
Merge pull request #137 from serverless-operations/move-ci
move ci to github actions
2 parents 1ed7b85 + d0476ca commit 059db58

File tree

3 files changed

+38
-27
lines changed

3 files changed

+38
-27
lines changed

.github/workflows/config.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on: [ push ]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
timeout-minutes: 45
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/[email protected]
12+
with:
13+
node-version: 14
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
27+
env:
28+
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
29+
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
30+
31+
- uses: actions/upload-artifact@v2
32+
with:
33+
name: code-coverage-report
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.yml/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)