Migrate CI to GitHub Actions as travis' free tier was discontinued
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..46a1d2e --- /dev/null +++ b/.github/workflows/tests.yml
@@ -0,0 +1,27 @@ +# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + - uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - run: npm install + - run: npm test
diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 965fe2d..0000000 --- a/.travis.yml +++ /dev/null
@@ -1,3 +0,0 @@ -language: node_js -node_js: node -cache: npm
diff --git a/README.md b/README.md index a51d031..0554349 100644 --- a/README.md +++ b/README.md
@@ -2,7 +2,8 @@ [](https://raw.githubusercontent.com/bats-core/bats-support/master/LICENSE) [](https://github.com/bats-core/bats-support/releases/latest) -[](https://travis-ci.org/bats-core/bats-support) +[](https://github.com/bats-core/bats-support/actions?query=workflow%3ATests) + `bats-support` is a supporting library providing common functions to test helper libraries written for [Bats][bats].