From 7665876b3a05d667c34df57ea03341f1e2d0fb29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Strate=20Kl=C3=B8vedal?= Date: Sun, 27 Sep 2020 23:04:05 +0200 Subject: [PATCH] Add automated UI tests --- .github/workflows/tests.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4169047a..4d6705ed 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,3 +38,32 @@ jobs: - name: Test run: go test -v ./... + + test-ui: + name: Test UI + runs-on: ubuntu-latest + + defaults: + run: + working-directory: ui + + strategy: + matrix: + node-version: [10.x, 14.x] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm install + + - name: Build + run: npm run build --if-present + + - name: Test + run: npm test