- renanemd ci.yml file to test.yml - we will have more then one workflow in the future

- removed clutter from test workflow file
This commit is contained in:
Ulf Gebhardt 2021-02-03 16:29:24 +01:00
parent c78cd78d72
commit 7d7b3c1af4
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -1,4 +1,4 @@
name: ocelot.social CI
name: ocelot.social test CI
on: [push]
@ -241,43 +241,4 @@ jobs:
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps webapp
- name: webapp | Unit tests
#run: docker run --rm ocelotsocialnetwork/webapp:build yarn run test
run: docker-compose exec -T webapp yarn test
##############################################################################
# JOB: DOCKER BUILD PRODUCTION & PUSH ########################################
##############################################################################
#build_production:
# name: Docker Build Production & Push
# runs-on: ubuntu-latest
# needs: prepare
# steps:
##########################################################################
# CHECKOUT CODE ##########################################################
##########################################################################
#- name: Checkout code
# uses: actions/checkout@v2
##########################################################################
# BACKEND ################################################################
##########################################################################
# TODO: We want to push this to dockerhub
#- name: Build backend production image
# uses: docker/build-push-action@v1.1.0
# with:
# repository: ocelotsocialnetwork/backend
# tags: production
# target: production
# path: backend/
# push: false
##########################################################################
# WEBAPP #################################################################
##########################################################################
# TODO: We want to push this to dockerhub
#- name: Build webapp production image
# uses: docker/build-push-action@v1.1.0
# with:
# repository: ocelotsocialnetwork/webapp
# tags: production
# target: production
# path: webapp/
# push: false
run: docker-compose exec -T webapp yarn test