From 02d0f7db132090a8c679817272ef9e06f81fa56b Mon Sep 17 00:00:00 2001 From: Steven D Vachon Date: Fri, 20 Sep 2019 10:39:20 -0400 Subject: [PATCH] Switched from Travis CI to GitHub Actions --- .github/workflows/tests.yml | 25 +++++++++++++++++++++++++ .travis.yml | 5 ----- README.md | 5 ++--- 3 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/tests.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..aa9fc56f --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,25 @@ +name: tests +on: [push, pull_request] + +jobs: + test: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + node-version: [12] + os: [ubuntu-latest] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm install + npm run ci + env: + CI: true + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d1544612..00000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - 12 - - node -script: npm run ci diff --git a/README.md b/README.md index b9318ce1..221661b7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# broken-link-checker [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Monitor][greenkeeper-image]][greenkeeper-url] +# broken-link-checker [![NPM Version][npm-image]][npm-url] ![Build Status][ci-image] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Monitor][greenkeeper-image]][greenkeeper-url] > Find broken links, missing images, etc within your HTML. @@ -451,8 +451,7 @@ if (link.isBroken) { [npm-image]: https://img.shields.io/npm/v/broken-link-checker.svg [npm-url]: https://npmjs.org/package/broken-link-checker -[travis-image]: https://img.shields.io/travis/stevenvachon/broken-link-checker.svg -[travis-url]: https://travis-ci.org/stevenvachon/broken-link-checker +[ci-image]: https://github.com/stevenvachon/broken-link-checker/workflows/tests/badge.svg [coveralls-image]: https://img.shields.io/coveralls/stevenvachon/broken-link-checker.svg [coveralls-url]: https://coveralls.io/github/stevenvachon/broken-link-checker [greenkeeper-image]: https://badges.greenkeeper.io/stevenvachon/broken-link-checker.svg