diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..22c45ac --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,26 @@ +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [4.x, 6.x, 8.x] + os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - run: npm install + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c06a95e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: node_js -node_js: - - '4' - - '6' - - '8' - - 'stable' - -install: - - time npm install - -script: - - npm run test:coverage - -after_success: - - cat ./coverage/lcov.info | npm run coveralls - -sudo: false