mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
frontend tests to github workflow
This commit is contained in:
parent
8dbf7adf27
commit
1d8cd51132
55
.github/workflows/test.yml
vendored
55
.github/workflows/test.yml
vendored
@ -214,41 +214,40 @@ jobs:
|
|||||||
# run: docker-compose exec -T backend yarn test
|
# run: docker-compose exec -T backend yarn test
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# JOB: UNIT TEST WEBAPP ######################################################
|
# JOB: UNIT TEST FRONTEND ###################################################
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#unit_test_webapp:
|
unit_test_frontend:
|
||||||
# name: Unit tests - webapp
|
name: Unit tests - Frontend
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# needs: [build_test_webapp]
|
needs: [build_test_frontend]
|
||||||
# steps:
|
steps:
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# # CHECKOUT CODE ##########################################################
|
# CHECKOUT CODE ##########################################################
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# - name: Checkout code
|
- name: Checkout code
|
||||||
# uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# # DOWNLOAD DOCKER IMAGES #################################################
|
# DOWNLOAD DOCKER IMAGES #################################################
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# - name: Download Docker Image (Webapp)
|
- name: Download Docker Image (Webapp)
|
||||||
# uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
# with:
|
with:
|
||||||
# name: docker-webapp-test
|
name: docker-frontend-test
|
||||||
# path: /tmp
|
path: /tmp
|
||||||
# - name: Load Docker Image
|
- name: Load Docker Image
|
||||||
# run: docker load < /tmp/webapp.tar
|
run: docker load < /tmp/frontend.tar
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# # UNIT TESTS WEBAPP #####################################################
|
# UNIT TESTS WEBAPP #####################################################
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# # TODO: Why do we need those .envs?
|
# TODO: Why do we need those .envs?
|
||||||
# - name: backend | copy env files webapp
|
# - name: backend | copy env files webapp
|
||||||
# run: cp webapp/.env.template webapp/.env
|
# run: cp webapp/.env.template webapp/.env
|
||||||
# - name: backend | copy env files backend
|
# - name: backend | copy env files backend
|
||||||
# run: cp backend/.env.template backend/.env
|
# run: cp backend/.env.template backend/.env
|
||||||
# - name: backend | docker-compose
|
# - name: backend | docker-compose
|
||||||
# run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps webapp
|
# run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps webapp
|
||||||
# - name: webapp | Unit tests
|
- name: frontend | Unit tests
|
||||||
# #run: docker run --rm ocelotsocialnetwork/webapp:build yarn run test
|
run: docker-compose exec -T frontend yarn test
|
||||||
# run: docker-compose exec -T webapp yarn test
|
|
||||||
|
|
||||||
#test:
|
#test:
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user