diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0840774 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: test + +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: ['10', '12', '14', '16', '18', '20'] + + steps: + - name: checkout + uses: actions/checkout@v3 + - name: setup Node v${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm install + + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 35f9008..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -sudo: false -language: node_js -node_js: - - 'stable' - - '12' - - '10'