diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml new file mode 100644 index 0000000..7008130 --- /dev/null +++ b/.github/workflows/continuous_integration.yml @@ -0,0 +1,26 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x, 10.x] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + cache: 'npm' + node-version: ${{ matrix.node-version }} + + - name: Install node modules + run: npm ci + + - name: Run tests + run: npm test diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..df92663 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,26 @@ +name: Report coverage + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x, 10.x] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + cache: 'npm' + node-version: ${{ matrix.node-version }} + + - name: Install node modules + run: npm ci + + - name: Run report coverate + run: npm run report-coverage diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8976c0e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -notifications: - email: false -node_js: - - "10" - - "8" -script: - - npm run report-coverage diff --git a/README.md b/README.md index 9fe162c..4c01fce 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Examples: the API of this library as an example. [![npm version](https://badge.fury.io/js/karet.xhr.svg)](http://badge.fury.io/js/karet.xhr) -[![Build Status](https://travis-ci.org/calmm-js/karet.xhr.svg?branch=master)](https://travis-ci.org/calmm-js/karet.xhr) +[![Build Status](https://github.com/calmm-js/karet.xhr/actions/workflows/continuous_integration.yml/badge.svg)](https://github.com/calmm-js/karet.xhr/actions?query=workflow%3ACI) [![Code Coverage](https://img.shields.io/codecov/c/github/calmm-js/karet.xhr/master.svg)](https://codecov.io/github/calmm-js/karet.xhr?branch=master) [![](https://david-dm.org/calmm-js/karet.xhr.svg)](https://david-dm.org/calmm-js/karet.xhr) [![](https://david-dm.org/calmm-js/karet.xhr/dev-status.svg)](https://david-dm.org/calmm-js/karet.xhr?type=dev)