Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bats-core/bats-support.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schulze <martin.schulze@vireso.de>2022-03-04 09:28:00 +0300
committerMartin Schulze <martin.schulze@vireso.de>2022-03-04 09:28:00 +0300
commitd90abca995698aa60226004cf4e80dfdc3855fb7 (patch)
tree65e6cba79d855b4b845584740b413d5426184d9e
parent6e339fe3b46238bbb02a863e4825e66e5257880a (diff)
Migrate CI to GitHub Actions
as travis' free tier was discontinued
-rw-r--r--.github/workflows/tests.yml27
-rw-r--r--.travis.yml3
-rw-r--r--README.md3
3 files changed, 29 insertions, 4 deletions
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].