From 4254f343caf7c21726e9d442a78da89bf51d09fa Mon Sep 17 00:00:00 2001 From: Walden Raines Date: Fri, 27 Oct 2023 13:58:24 -0400 Subject: [PATCH] chore: swap travis for github actions --- .github/ci.yml | 21 +++++++++++++++++++++ .travis.yml | 31 ------------------------------- 2 files changed, 21 insertions(+), 31 deletions(-) create mode 100644 .github/ci.yml delete mode 100644 .travis.yml diff --git a/.github/ci.yml b/.github/ci.yml new file mode 100644 index 0000000..673062a --- /dev/null +++ b/.github/ci.yml @@ -0,0 +1,21 @@ +name: Test + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + node-version: ['14.x', '16.x', '18.x'] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run test + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c9a7fff..0000000 --- a/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -language: node_js -node_js: - - 16 - -deploy: - - provider: script - script: "cp .npmrc.template $HOME/.npmrc && npm publish" - skip_cleanup: true - on: - tags: true - - provider: script - script: "npm run docs" - skip_cleanup: true - on: - branch: master - -git: - depth: false - -notifications: - email: - recipients: - - chris@unchained-capital.com - on_success: change - on_failure: always - -before_deploy: - - npm install - - git remote set-url origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git - - git config --global user.email "Travis CI" - - git config --global user.name "TravisCI"