From ce3167f0f3e17be286fc5536d571491826562cf0 Mon Sep 17 00:00:00 2001 From: "Kyle E. Mitchell" Date: Tue, 21 Nov 2023 11:05:15 -0800 Subject: [PATCH] Configure GitHub Action for CI --- .github/workflows/ci.yml | 17 +++++++++++++++++ .travis.yml | 16 ---------------- 2 files changed, 17 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..bbc8fba --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: CI +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node: [8, 10, 12, 14, 16, 18, 20, 22, 24] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + - run: npm install + - run: npm test + env: + CI: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fe4902f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ ---- -language: "node_js" -node_js: -- "4" -- "5" -- "6" -- "7" -- "8" -- "9" -- "10" -- "11" -- "node" -script: -- "npm test" -- 'if [ "$TRAVIS_NODE_VERSION" = "node" ]; then npm run lint ; fi' -sudo: false