From 72643b434641bd4e2d896a97a3770b3dcbea5959 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 21 Feb 2022 15:38:53 +0100 Subject: [PATCH] wait for frontend image in CI for unit tests --- .github/workflows/test.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c67a63f4d..8ebefe394 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -339,7 +339,7 @@ jobs: unit_test_frontend: name: Unit tests - Frontend runs-on: ubuntu-latest - #needs: [nothing] + needs: [build_test_frontend] steps: ########################################################################## # CHECKOUT CODE ########################################################## @@ -347,6 +347,16 @@ jobs: - name: Checkout code uses: actions/checkout@v2 ########################################################################## + # DOWNLOAD DOCKER IMAGES ################################################# + ########################################################################## + - name: Download Docker Image (Frontend) + uses: actions/download-artifact@v2 + with: + name: docker-frontend-test + path: /tmp + - name: Load Docker Image + run: docker load < /tmp/frontend.tar + ########################################################################## # UNIT TESTS FRONTEND #################################################### ########################################################################## - name: frontend | Unit tests @@ -354,6 +364,14 @@ jobs: docker run --env NODE_ENV=test -v ~/coverage:/app/coverage --rm gradido/frontend:test yarn run test cp -r ~/coverage ./coverage ########################################################################## + # COVERAGE REPORT FRONTEND ############################################### + ########################################################################## + #- name: frontend | Coverage report + # uses: romeovs/lcov-reporter-action@v0.2.21 + # with: + # github-token: ${{ secrets.GITHUB_TOKEN }} + # lcov-file: ./coverage/lcov.info + ########################################################################## # COVERAGE CHECK FRONTEND ################################################ ########################################################################## - name: frontend | Coverage check