diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..793a9729c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,35 @@ +name: "Test" +on: + push: + branches: + - master + pull_request: +jobs: + test: + name: "Test" + runs-on: ubuntu-latest + strategy: + matrix: + node_version: ["4", "4.3.2", "6", "8", "10", "12"] + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node_version }} + - name: "Install dependencies" + run: npm install + - name: "Run tests" + run: npm test + bench: + name: "Bench" + runs-on: ubuntu-latest + needs: test + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: "12" + - name: "Install dependencies" + run: npm install + - name: "Run benchmark" + run: npm run bench diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a7e62a242..000000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -dist: trusty -language: node_js -node_js: - - node - - lts/* - - 12 - - 11 - - 10 - - 8 - - 6 - - 4.3.2 - - 4 -branches: - only: master -script: npm test && npm run bench