From ac0eaf89cff983d05c98f92c00cc7942855b7147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tadeusz=20So=C5=9Bnierz?= <tadeusz@sosnierz.com> Date: Mon, 22 Nov 2021 17:45:21 +0100 Subject: [PATCH] Add Github CI for linting and tests --- .github/workflows/tests.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..3b33cee --- /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 -- GitLab