diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..6387cfb --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,50 @@ +name: CI Tests + +on: + pull_request: + types: [opened, synchronize, reopened] + push: + branches: + - master + +jobs: + lint: + runs-on: ubuntu-latest + + name: Lint on node 12.x and ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + + - name: Install deps and build + run: yarn install + + - name: Lint codebase + run: yarn lint + + test: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + node: ['10.x', '12.x', '13.x'] + os: [ubuntu-latest, windows-latest, macOS-latest] + + name: Test on node ${{ matrix.node }} and ${{ matrix.os }} + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + + - name: Install deps and build + run: yarn install + + - name: Test package + run: yarn test --runInBand diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a84d5f0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: node_js -node_js: - - "node" - - "6" - - "5" - - "4" - - "0.12"