From c2649204d7dde875dd2a1e4bdb2cdb4d818f3d48 Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Sun, 25 Apr 2021 11:18:22 +0200 Subject: [PATCH] chore: create unit test workflow --- .github/workflows/unit-test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/unit-test.yml diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml new file mode 100644 index 00000000..129a7097 --- /dev/null +++ b/.github/workflows/unit-test.yml @@ -0,0 +1,23 @@ +name: Unit tests +on: pull_request + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [12.x, 14.x, 15.x] + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: "0" + lfs: true + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: Install deps + run: yarn + - name: Run unit tests + run: yarn test