Skip to content

Commit

Permalink
Switch to GitHub Actions CI. (#85)
Browse files Browse the repository at this point in the history
* Switch to GitHub Actions CI.

* Add `SHELL` environment variable

* Specify `shell: bash`
  • Loading branch information
XhmikosR authored and paulmillr committed Nov 5, 2019
1 parent 42a6ea8 commit 99e4b47
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 9 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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"
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down

0 comments on commit 99e4b47

Please sign in to comment.