From d90abca995698aa60226004cf4e80dfdc3855fb7 Mon Sep 17 00:00:00 2001 From: Martin Schulze Date: Fri, 4 Mar 2022 07:28:00 +0100 Subject: Migrate CI to GitHub Actions as travis' free tier was discontinued --- .github/workflows/tests.yml | 27 +++++++++++++++++++++++++++ .travis.yml | 3 --- README.md | 3 ++- 3 files changed, 29 insertions(+), 4 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 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 @@ [![GitHub license](https://img.shields.io/badge/license-CC0-blue.svg)](https://raw.githubusercontent.com/bats-core/bats-support/master/LICENSE) [![GitHub release](https://img.shields.io/github/release/bats-core/bats-support.svg)](https://github.com/bats-core/bats-support/releases/latest) -[![Build Status](https://travis-ci.org/bats-core/bats-support.svg?branch=master)](https://travis-ci.org/bats-core/bats-support) +[![Build Status](https://github.com/bats-core/bats-support/workflows/Tests/badge.svg)](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]. -- cgit v1.2.3