mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
first test for cypress
This commit is contained in:
parent
6b1a824674
commit
962327f0b3
56
.github/workflows/test.yml
vendored
56
.github/workflows/test.yml
vendored
@ -269,4 +269,58 @@ jobs:
|
|||||||
type: lcov
|
type: lcov
|
||||||
result_path: ./coverage/lcov.info
|
result_path: ./coverage/lcov.info
|
||||||
min_coverage: 52
|
min_coverage: 52
|
||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
# JOB: FULLSTACK TESTS #######################################################
|
||||||
|
##############################################################################
|
||||||
|
fullstack_tests:
|
||||||
|
name: Fullstack tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [build_test_webapp, build_test_backend, build_test_neo4j]
|
||||||
|
steps:
|
||||||
|
##########################################################################
|
||||||
|
# CHECKOUT CODE ##########################################################
|
||||||
|
##########################################################################
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
##########################################################################
|
||||||
|
# DOWNLOAD DOCKER IMAGES #################################################
|
||||||
|
##########################################################################
|
||||||
|
- name: Download Docker Image (Neo4J)
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: docker-neo4j-image
|
||||||
|
path: /tmp
|
||||||
|
- name: Load Docker Image
|
||||||
|
run: docker load < /tmp/neo4j.tar
|
||||||
|
- name: Download Docker Image (Backend)
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: docker-backend-test
|
||||||
|
path: /tmp
|
||||||
|
- name: Load Docker Image
|
||||||
|
run: docker load < /tmp/backend.tar
|
||||||
|
- name: Download Docker Image (Webapp)
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: docker-webapp-test
|
||||||
|
path: /tmp
|
||||||
|
- name: Load Docker Image
|
||||||
|
run: docker load < /tmp/webapp.tar
|
||||||
|
##########################################################################
|
||||||
|
# FULLSTACK TESTS CYPRESS ################################################
|
||||||
|
##########################################################################
|
||||||
|
# TODO: Why do we need those .envs?
|
||||||
|
- name: backend | copy env files webapp
|
||||||
|
run: cp webapp/.env.template webapp/.env
|
||||||
|
- name: backend | copy env files backend
|
||||||
|
run: cp backend/.env.template backend/.env
|
||||||
|
- name: backend | docker-compose
|
||||||
|
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps webapp neo4j backend
|
||||||
|
- name: cypress | Fullstack tests
|
||||||
|
#run: docker run --rm ocelotsocialnetwork/webapp:build yarn run test
|
||||||
|
run: |
|
||||||
|
yarn install
|
||||||
|
yarn run cypress:setup
|
||||||
|
yarn run cypress:run
|
||||||
Loading…
x
Reference in New Issue
Block a user