diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml new file mode 100644 index 00000000..74124789 --- /dev/null +++ b/.github/workflows/config.yml @@ -0,0 +1,22 @@ +name: CI + +on: push + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2.1.4 + with: + node-version: 14 + - run: | + npm install + - run: | + npm run lint + - run: | + npm run test + - uses: actions/upload-artifact@v2 + with: + name: code-coverage-report + path: reports \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e53a3f39..00000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: node_js - -matrix: - include: - - node_js: 10 - - node_is: 12 - - node_js: 12 - env: - - DISABLE_TESTS=true - - LINTING=true - -sudo: false - -install: - - travis_retry npm install - - npm install -g codecov - -script: - - if [[ -z "$DISABLE_TESTS" ]]; then npm run coverage; fi - - if [[ ! -z "$DISABLE_TESTS" && ! -z "$LINTING" ]]; then npm run lint; fi - -after_success: - - codecov - - rm -rf ./.nyc_output - - rm -rf ./coverage diff --git a/README.md b/README.md index dcf511fb..fd1a8249 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Serverless Step Functions -[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) [![Build Status](https://travis-ci.org/serverless-operations/serverless-step-functions.svg?branch=master)](https://travis-ci.org/serverless-operations/serverless-step-functions) [![npm version](https://badge.fury.io/js/serverless-step-functions.svg)](https://badge.fury.io/js/serverless-step-functions) [![Coverage Status](https://coveralls.io/repos/github/horike37/serverless-step-functions/badge.svg?branch=master)](https://coveralls.io/github/horike37/serverless-step-functions?branch=master) [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) [![serverless-step-functions Dev Token](https://badge.devtoken.rocks/serverless-step-functions)](https://devtoken.rocks/package/serverless-step-functions) +[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) ![CI](https://github.com/serverless-operations/serverless-step-functions/actions/workflows/config.yml/badge.svg) [![npm version](https://badge.fury.io/js/serverless-step-functions.svg)](https://badge.fury.io/js/serverless-step-functions) [![Coverage Status](https://coveralls.io/repos/github/horike37/serverless-step-functions/badge.svg?branch=master)](https://coveralls.io/github/horike37/serverless-step-functions?branch=master) [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) [![serverless-step-functions Dev Token](https://badge.devtoken.rocks/serverless-step-functions)](https://devtoken.rocks/package/serverless-step-functions) This is the Serverless Framework plugin for AWS Step Functions.