From 960683351ed3ef67d03db77b278aa5be57795d4c Mon Sep 17 00:00:00 2001 From: anvaka Date: Sat, 24 Jul 2021 14:23:45 -0700 Subject: [PATCH] Moved to github actions --- .github/workflows/tests.yaml | 26 ++++++++++++++++++++++++++ .travis.yml | 3 --- README.md | 2 +- 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/tests.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..87a91c6 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,26 @@ +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 15.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d6b8187..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - node diff --git a/README.md b/README.md index 199ee38..b2376b5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# isect - intersection detection library [![Build Status](https://travis-ci.org/anvaka/isect.svg?branch=master)](https://travis-ci.org/anvaka/isect) +# isect - intersection detection library [![build status](https://github.com/anvaka/isect/actions/workflows/tests.yaml/badge.svg)](https://github.com/anvaka/isect/actions/workflows/tests.yaml) This library allows you to find all intersections in a given set of segments.