From 90f3bc97033dd7c834f2ae04924a8b8371cf7d5a Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 26 Aug 2019 22:00:36 +0300 Subject: Switch to GitHub Actions CI. (#65) --- .github/workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 15 --------------- README.md | 2 +- 3 files changed, 33 insertions(+), 16 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..6392547 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: Run tests +on: [push, pull_request] + +jobs: + run: + name: Node ${{ matrix.node }} + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + node: [6, 8, 10, 12] + + steps: + - name: Clone repository + uses: actions/checkout@master + with: + fetch-depth: 3 + + - name: Set up Node.js + uses: actions/setup-node@v1.1.0 + with: + version: ${{ matrix.node }} + + - run: node --version + - run: npm --version + + - name: Install npm dependencies + run: npm install # switch to `npm ci` when Node.js 6.x is dropped + + - name: Run tests + run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cf9b53f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: node_js - -node_js: - - "6" - - "8" - - "10" - - "12" - -matrix: - fast_finish: true - -cache: npm - -notifications: - email: false \ No newline at end of file diff --git a/README.md b/README.md index a35b826..85dc5d9 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ > A Grunt wrapper for [Bootlint](https://www.npmjs.org/package/bootlint), the HTML linter for [Bootstrap](https://getbootstrap.com) projects [![NPM version](https://img.shields.io/npm/v/grunt-bootlint.svg)](https://www.npmjs.com/package/grunt-bootlint) -[![Build Status](https://img.shields.io/travis/twbs/grunt-bootlint/master.svg)](https://travis-ci.org/twbs/grunt-bootlint) +![Build Status](https://action-badges.now.sh/twbs/grunt-bootlint) [![MIT License](https://img.shields.io/npm/l/grunt-bootlint.svg)](https://github.com/twbs/grunt-bootlint/blob/master/LICENSE) [![Dependency Status](https://img.shields.io/david/twbs/grunt-bootlint.svg)](https://david-dm.org/twbs/grunt-bootlint) [![devDependency Status](https://img.shields.io/david/dev/twbs/grunt-bootlint.svg)](https://david-dm.org/twbs/grunt-bootlint?type=dev) -- cgit v1.2.3