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"