diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..bf1f430 --- /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 ] + 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