diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..1ee0b2a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,35 @@ +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + + runs-on: ${{ matrix.os }} + + strategy: + matrix: + node-version: + - 10.x + - 12.x + - 14.x] + os: + - ubuntu-latest + - macos-latest + - windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - run: npm ci + + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 32e0fb7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -sudo: false -language: node_js -node_js: - - "0.12" - - "4.0" diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index c83c9d3..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,27 +0,0 @@ -version: "{build}" -os: Windows Server 2012 R2 - -# Test against this version of Node.js -environment: - matrix: - - nodejs_version: "0.12" - - nodejs_version: "4.0" - -# Install scripts. (runs after repo cloning) -install: - # Get the latest stable version of Node.js or io.js - - ps: Install-Product node $env:nodejs_version - # install modules - - npm install - -# Post-install test scripts. -test_script: - # Output useful info for debugging. - - node --version - - npm --version - # run tests - - npm test - -# Don't actually build or deploy. -build: off -deploy: off