From d8c07f335c0e7ae3343808c0fbec82a7d3d86803 Mon Sep 17 00:00:00 2001 From: lsphillips Date: Sat, 3 Jul 2021 15:22:32 +0100 Subject: [PATCH] Replaced Travis CI with GitHub Actions. --- .github/workflows/build-and-test.yml | 38 ++++++++++++++++++++++++++++ .travis.yml | 6 ----- README.md | 2 +- 3 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/build-and-test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..2d90c7d --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,38 @@ +name: Build and Test + +on: + push: + paths-ignore: + - '**.md' + pull_request: + branches: + - master + paths-ignore: + - '**.md' + +jobs: + + build-and-test: + + name: Build and Test + + steps: + + - name: Checkout + uses: actions/checkout@v2.3.4 + + - name: Install NodeJS + uses: actions/setup-node@v2.2.0 + with: + node-version: '16' + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm test + + - name: Build + run: npm run build + + runs-on: ubuntu-latest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c589389..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -dist: trusty -addons: - chrome: stable -language: node_js -node_js: - - "16" diff --git a/README.md b/README.md index f5a8e0c..2caa763 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # WaitForTheElement [![Available from NPM](https://img.shields.io/npm/v/wait-for-the-element.svg?maxAge=900)](https://www.npmjs.com/package/wait-for-the-element) -[![Built using Travis](https://img.shields.io/travis/com/lsphillips/WaitForTheElement/master.svg?maxAge=900)](https://travis-ci.com/lsphillips/WaitForTheElement) +[![Built using GitHub Action](https://github.com/lsphillips/WaitForTheElement/actions/workflows/build-and-test.yml/badge.svg?branch=master)](https://github.com/lsphillips/WaitForTheElement/actions) A utility library that enables you to efficiently wait for an element to appear or disappear.