remove docker dependendies from unit test jobs

This commit is contained in:
mahula 2023-02-16 16:33:49 +01:00
parent f12fea2433
commit baccc83f00

View File

@ -325,7 +325,6 @@ jobs:
unit_test_frontend: unit_test_frontend:
name: Unit tests - Frontend name: Unit tests - Frontend
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build_test_frontend]
steps: steps:
########################################################################## ##########################################################################
# CHECKOUT CODE ########################################################## # CHECKOUT CODE ##########################################################
@ -333,30 +332,10 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
########################################################################## ##########################################################################
# DOWNLOAD DOCKER IMAGES #################################################
##########################################################################
- name: Download Docker Image (Frontend)
uses: actions/download-artifact@v3
with:
name: docker-frontend-test
path: /tmp
- name: Load Docker Image
run: docker load < /tmp/frontend.tar
##########################################################################
# UNIT TESTS FRONTEND #################################################### # UNIT TESTS FRONTEND ####################################################
########################################################################## ##########################################################################
- name: frontend | Unit tests - name: Frontend | Unit tests
run: | run: cd frontend && yarn && yarn run test
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 ################################################ # COVERAGE CHECK FRONTEND ################################################
########################################################################## ##########################################################################
@ -375,7 +354,6 @@ jobs:
unit_test_admin: unit_test_admin:
name: Unit tests - Admin Interface name: Unit tests - Admin Interface
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build_test_admin]
steps: steps:
########################################################################## ##########################################################################
# CHECKOUT CODE ########################################################## # CHECKOUT CODE ##########################################################
@ -383,22 +361,10 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
########################################################################## ##########################################################################
# DOWNLOAD DOCKER IMAGES #################################################
##########################################################################
- name: Download Docker Image (Admin Interface)
uses: actions/download-artifact@v3
with:
name: docker-admin-test
path: /tmp
- name: Load Docker Image
run: docker load < /tmp/admin.tar
##########################################################################
# UNIT TESTS ADMIN INTERFACE ############################################# # UNIT TESTS ADMIN INTERFACE #############################################
########################################################################## ##########################################################################
- name: Admin Interface | Unit tests - name: Admin Interface | Unit tests
run: | run: cd admin && yarn && yarn run test
docker run -v ~/coverage:/app/coverage --rm gradido/admin:test yarn run test
cp -r ~/coverage ./coverage
########################################################################## ##########################################################################
# COVERAGE CHECK ADMIN INTERFACE ######################################### # COVERAGE CHECK ADMIN INTERFACE #########################################
########################################################################## ##########################################################################