diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..55c21d3d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + push: + branches: + - master + - main + - "v*" + tags: + - "v*" + pull_request: + +jobs: + tests: + name: "Tests on Node.js ${{ matrix.node-version }}" + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: ["10", "12", "14", "16"] + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - run: yarn install + - run: yarn build + - run: yarn test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e74628cb..00000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -git: - depth: 10 -language: node_js - -cache: yarn - -node_js: - - '10' - - '12' - -script: - - yarn test-ci