From 424d4cddb2cbc61e364e9064f7e058d896d91fb7 Mon Sep 17 00:00:00 2001 From: Bastian Wagner <49192490+wagnerbastian@users.noreply.github.com> Date: Thu, 28 Nov 2024 11:56:12 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0af0de7..133b607 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,14 @@ on: branches: - master jobs: + test_frontend: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run Unit-Tests + run: | + npm install + npm run test build_and_publish_backend: runs-on: ubuntu-latest steps: @@ -16,6 +24,7 @@ jobs: docker push ghcr.io/wagnerbastian/keyvault_pro_api:latest build_and_publish_frontend: runs-on: ubuntu-latest + needs: [test_frontend] steps: - uses: actions/checkout@v3 - name: Build and Push Image