diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..bb0c0dbb --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,42 @@ +name: tests + +on: + workflow_dispatch: + pull_request: + push: + branches: + +permissions: + contents: read + pull-requests: read + +jobs: + + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: + - 8 + - 10 + - 12 + steps: + + - name: checkout + uses: actions/checkout@v3 + + - name: node-setup + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: npm + + - name: node-deps + run: npm clean-install + + - name: lint + run: npm run lint + + - name: test + run: npm run test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f1d87f0a..00000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: node_js -arch: - - amd64 - - ppc64le -node_js: - - "8" - - "10" - - "12" -before_install: - - npm update -g npm -script: - - npm run-script test:ci -sudo: false