diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000000000000000000000000000000000000..3b33cee755282f71ed2359f94bda1a7cbc241654 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,28 @@ +name: CI + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: 14 + - run: yarn + - run: yarn lint + test: + runs-on: ubuntu-latest + strategy: + matrix: + node_version: [12, 14, 16] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node_version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node_version }} + - run: yarn + - run: yarn test