mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
commit
3da02f2791
18
.github/workflows/push.yml
vendored
18
.github/workflows/push.yml
vendored
@ -1,18 +0,0 @@
|
|||||||
name: on-push
|
|
||||||
on: push
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Build the stack
|
|
||||||
run: |
|
|
||||||
git submodule update --init --recursive
|
|
||||||
docker-compose up -d
|
|
||||||
- name: Test
|
|
||||||
env:
|
|
||||||
GN_INSTANCE_FOLDER: /tmp/gradio-node-instance
|
|
||||||
GN_CONTAINER_NAME: gradido-node-build
|
|
||||||
run: docker run gradido-node-test
|
|
||||||
timeout-minutes: 2
|
|
||||||
|
|
||||||
114
.github/workflows/test.yml
vendored
114
.github/workflows/test.yml
vendored
@ -4,34 +4,13 @@ name: gradido test CI
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
##############################################################################
|
|
||||||
# JOB: PREPARE #####################################################
|
|
||||||
##############################################################################
|
|
||||||
#prepare:
|
|
||||||
# name: Prepare
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# # needs: [nothing]
|
|
||||||
# steps:
|
|
||||||
# ##########################################################################
|
|
||||||
# # CHECKOUT CODE ##########################################################
|
|
||||||
# ##########################################################################
|
|
||||||
# - name: Checkout code
|
|
||||||
# uses: actions/checkout@v2
|
|
||||||
# ##########################################################################
|
|
||||||
# # TODO: DO STUFF ??? #####################################################
|
|
||||||
# ##########################################################################
|
|
||||||
# - name: Check translation files
|
|
||||||
# run: |
|
|
||||||
# scripts/translations/sort.sh
|
|
||||||
# scripts/translations/missing-keys.sh
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# JOB: DOCKER BUILD TEST FRONTEND ############################################
|
# JOB: DOCKER BUILD TEST FRONTEND ############################################
|
||||||
##############################################################################
|
##############################################################################
|
||||||
build_test_frontend:
|
build_test_frontend:
|
||||||
name: Docker Build Test - Frontend
|
name: Docker Build Test - Frontend
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
#needs: [nothing] # [prepare]
|
#needs: [nothing]
|
||||||
steps:
|
steps:
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# CHECKOUT CODE ##########################################################
|
# CHECKOUT CODE ##########################################################
|
||||||
@ -39,7 +18,7 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# NEO4J ##################################################################
|
# FRONTEND ###############################################################
|
||||||
##########################################################################
|
##########################################################################
|
||||||
- name: Frontend | Build `test` image
|
- name: Frontend | Build `test` image
|
||||||
run: |
|
run: |
|
||||||
@ -78,30 +57,58 @@ jobs:
|
|||||||
# path: /tmp/backend.tar
|
# path: /tmp/backend.tar
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# JOB: DOCKER BUILD TEST WEBAPP ##############################################
|
# JOB: DOCKER BUILD TEST LOGIN SERVER ########################################
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#build_test_webapp:
|
build_test_login_server:
|
||||||
# name: Docker Build Test - WebApp
|
name: Docker Build Test - Login Server
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# needs: [prepare]
|
#needs: [nothing]
|
||||||
# steps:
|
steps:
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# # CHECKOUT CODE ##########################################################
|
# CHECKOUT CODE ##########################################################
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# - name: Checkout code
|
- name: Checkout code
|
||||||
# uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
# ##########################################################################
|
with:
|
||||||
# # BUILD WEBAPP DOCKER IMAGE (build) ######################################
|
submodules: recursive
|
||||||
# ##########################################################################
|
##########################################################################
|
||||||
# - name: webapp | Build `test` image
|
# BUILD LOGIN SERVER DOCKER IMAGE (build) ################################
|
||||||
# run: |
|
##########################################################################
|
||||||
# docker build --target test -t "ocelotsocialnetwork/webapp:test" webapp/
|
- name: login server | Build `test` image
|
||||||
# docker save "ocelotsocialnetwork/webapp:test" > /tmp/webapp.tar
|
run: |
|
||||||
# - name: Upload Artifact
|
docker build --target login_server_debug -t "gradido/loginserver:test" -f ./login_server/Dockerfile.debug login_server/
|
||||||
# uses: actions/upload-artifact@v2
|
docker save "gradido/loginserver:test" > /tmp/loginserver.tar
|
||||||
# with:
|
- name: Upload Artifact
|
||||||
# name: docker-webapp-test
|
uses: actions/upload-artifact@v2
|
||||||
# path: /tmp/webapp.tar
|
with:
|
||||||
|
name: docker-loginserver-test
|
||||||
|
path: /tmp/loginserver.tar
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
# JOB: DOCKER BUILD TEST COMMUNITY SERVER ####################################
|
||||||
|
##############################################################################
|
||||||
|
build_test_community_server:
|
||||||
|
name: Docker Build Test - Community Server
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
#needs: [nothing]
|
||||||
|
steps:
|
||||||
|
##########################################################################
|
||||||
|
# CHECKOUT CODE ##########################################################
|
||||||
|
##########################################################################
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
##########################################################################
|
||||||
|
# BUILD COMMUNITY SERVER DOCKER IMAGE (build) ############################
|
||||||
|
##########################################################################
|
||||||
|
- name: community server | Build `test` image
|
||||||
|
run: |
|
||||||
|
docker build -t "gradido/communityserver:test" -f ./community_server/Dockerfile ./
|
||||||
|
docker save "gradido/communityserver:test" > /tmp/communityserver.tar
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: docker-communityserver-test
|
||||||
|
path: /tmp/communityserver.tar
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# JOB: LINT FRONTEND #########################################################
|
# JOB: LINT FRONTEND #########################################################
|
||||||
@ -242,3 +249,18 @@ jobs:
|
|||||||
# - name: webapp | Unit tests
|
# - name: webapp | Unit tests
|
||||||
# #run: docker run --rm ocelotsocialnetwork/webapp:build yarn run test
|
# #run: docker run --rm ocelotsocialnetwork/webapp:build yarn run test
|
||||||
# run: docker-compose exec -T webapp yarn test
|
# run: docker-compose exec -T webapp yarn test
|
||||||
|
|
||||||
|
#test:
|
||||||
|
# runs-on: ubuntu-latest
|
||||||
|
# steps:
|
||||||
|
# - uses: actions/checkout@v2
|
||||||
|
# - name: Build the stack
|
||||||
|
# run: |
|
||||||
|
# git submodule update --init --recursive
|
||||||
|
# docker-compose up -d
|
||||||
|
# - name: Test
|
||||||
|
# env:
|
||||||
|
# GN_INSTANCE_FOLDER: /tmp/gradio-node-instance
|
||||||
|
# GN_CONTAINER_NAME: gradido-node-build
|
||||||
|
# run: docker run gradido-node-test
|
||||||
|
# timeout-minutes: 2
|
||||||
8
.gitmodules
vendored
8
.gitmodules
vendored
@ -2,12 +2,12 @@
|
|||||||
path = gn
|
path = gn
|
||||||
url = https://github.com/gradido/gn.git
|
url = https://github.com/gradido/gn.git
|
||||||
branch = master
|
branch = master
|
||||||
[submodule "mithril_client"]
|
#[submodule "mithril_client"]
|
||||||
path = community_server/mithril_client
|
# path = community_server/mithril_client
|
||||||
url = git@github.com:gradido/gradido_mithrilJS_client.git
|
# url = https://github.com/gradido/gradido_mithrilJS_client.git
|
||||||
[submodule "src/protobuf"]
|
[submodule "src/protobuf"]
|
||||||
path = community_server/src/protobuf
|
path = community_server/src/protobuf
|
||||||
url = git@github.com:gradido/gradido_protocol.git
|
url = https://github.com/gradido/gradido_protocol.git
|
||||||
[submodule "dependencies/tinf"]
|
[submodule "dependencies/tinf"]
|
||||||
path = login_server/dependencies/tinf
|
path = login_server/dependencies/tinf
|
||||||
url = https://github.com/jibsen/tinf.git
|
url = https://github.com/jibsen/tinf.git
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
Subproject commit f0b1d113cee2a76e9dbb098b315f4acaf38410d0
|
|
||||||
Loading…
x
Reference in New Issue
Block a user