diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b78b06a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: Tests +on: [push, pull_request] +env: + CI: true + +jobs: + run: + name: Node ${{ matrix.node }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + # change `8.16.1` to `8` when https://github.com/actions/setup-node/issues/27 is fixed + node: [8.16.1, 10, 12] + os: [ubuntu-latest, windows-latest, macOS-latest] + + steps: + - name: Clone repository + uses: actions/checkout@v1 + + - name: Set Node.js version + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + + - run: node --version + - run: npm --version + + - name: Install npm dependencies + run: npm ci + + - name: Run tests + run: npm test + shell: bash + env: + SHELL: "/bin/bash" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c909f88..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -node_js: - - "8" - - "10" - - "12" -notifications: - email: - - kimmobrunfeldt+chokidar@gmail.com diff --git a/README.md b/README.md index ef1f73f..573f935 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Chokidar CLI -[![Build Status](https://travis-ci.org/kimmobrunfeldt/chokidar-cli.svg?branch=master)](https://travis-ci.org/kimmobrunfeldt/chokidar-cli) +[![Build Status](https://github.com/kimmobrunfeldt/chokidar-cli/workflows/Tests/badge.svg)](https://github.com/kimmobrunfeldt/chokidar-cli/actions?workflow=Tests) Fast cross-platform command line utility to watch file system changes.