diff --git a/.github/continuous_integration.yml b/.github/continuous_integration.yml new file mode 100644 index 0000000..9f78d41 --- /dev/null +++ b/.github/continuous_integration.yml @@ -0,0 +1,29 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.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: Update npm + run: npm i -g npm@7 + + - name: Install node modules + run: npm ci + + - name: Run tests + run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 104d0f7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: node_js - -node_js: - - 8 - - 10 - - 12 - -env: - - JEST_VERSION=24 - - JEST_VERSION=25 \ No newline at end of file diff --git a/README.md b/README.md index ee4fa0a..95519fa 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Jest plugin for asserting on Kefir Observables. -[![Build Status](https://travis-ci.org/kefirjs/jest-kefir.svg?branch=master)](https://travis-ci.org/kefirjs/jest-kefir) +[![Build Status](https://github.com/kefirjs/jest-kefir/actions/workflows/continuous_integration.yml/badge.svg)](https://github.com/kefirjs/jest-kefir/actions?query=workflow%3ACI) ---