From 63ff8d64e66081aead4f2f6fae6c704b79af5959 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 25 Oct 2019 15:26:47 +0300 Subject: [PATCH 1/3] Switch to GitHub Actions CI. --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 8 -------- README.md | 2 +- 3 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..78c1680 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +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 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. From 5af21d55e02a1ef4b3cf9590f362f1eecab5604a Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 25 Oct 2019 15:39:53 +0300 Subject: [PATCH 2/3] Add `SHELL` environment variable --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 78c1680..74a2762 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,3 +32,5 @@ jobs: - name: Run tests run: npm test + env: + SHELL: "/bin/bash" From efa062d9dee35a714ded8bfbf26e29a4f21c2518 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 25 Oct 2019 15:41:53 +0300 Subject: [PATCH 3/3] Specify `shell: bash` --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 74a2762..b78b06a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,5 +32,6 @@ jobs: - name: Run tests run: npm test + shell: bash env: SHELL: "/bin/bash"