From 9fe4e4f75d27a552b7341f073eb11ffe7de90db9 Mon Sep 17 00:00:00 2001 From: Nils Haberkamp Date: Sun, 9 Jul 2023 19:50:09 +0200 Subject: [PATCH] ci: add job for unit tests --- .github/workflows/ci.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 54d10a3..8cdeeeb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,3 +29,23 @@ jobs: run: pnpm run format:check - name: Lint run: pnpm run lint + + unit: + runs-on: ubuntu-latest + needs: static-analysis + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'pnpm' + - name: Install dependencies + run: pnpm install --prefer-offline + - name: Run unit tests + run: pnpm run test