From 1c05ba09dcf17f898f8ea3b8a8c6ec6112d92933 Mon Sep 17 00:00:00 2001 From: David Twigger Date: Tue, 10 Jan 2023 08:24:15 +0100 Subject: [PATCH] Add cypress unit tests to workflow --- .github/workflows/auto-test.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/auto-test.yml b/.github/workflows/auto-test.yml index b49a253c..c03e9e4d 100644 --- a/.github/workflows/auto-test.yml +++ b/.github/workflows/auto-test.yml @@ -66,3 +66,19 @@ jobs: - run: npm install - run: npm run build - run: npm run cy:test + + frontend-unit-tests: + needs: [ check-linters ] + runs-on: ubuntu-latest + steps: + - run: git config --global core.autocrlf false # Mainly for Windows + - uses: actions/checkout@v3 + + - name: Use Node.js 14 + uses: actions/setup-node@v3 + with: + node-version: 14 + cache: 'npm' + - run: npm install + - run: npm run build + - run: cy:run:unit