mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
undo docker build dependencies removal for dht node unit tests
This commit is contained in:
parent
1c426db68d
commit
1c31a5b679
23
.github/workflows/test_dht-node.yml
vendored
23
.github/workflows/test_dht-node.yml
vendored
@ -35,8 +35,15 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Build 'test' image
|
- name: Build 'test' image
|
||||||
run: docker build --target test -t "gradido/dht-node:test" -f dht-node/Dockerfile .
|
run: |
|
||||||
|
docker build --target test -t "gradido/dht-node:test" -f dht-node/Dockerfile .
|
||||||
|
docker save "gradido/dht-node:test" > /tmp/dht-node.tar
|
||||||
|
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: docker-dht-node-test
|
||||||
|
path: /tmp/dht-node.tar
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# JOB: LINT ##################################################################
|
# JOB: LINT ##################################################################
|
||||||
@ -61,10 +68,20 @@ jobs:
|
|||||||
if: needs.files-changed.outputs.dht_node == 'true' || needs.files-changed.outputs.docker == 'true'
|
if: needs.files-changed.outputs.dht_node == 'true' || needs.files-changed.outputs.docker == 'true'
|
||||||
needs: files-changed
|
needs: files-changed
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: [build]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Download Docker Image
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: docker-dht-node-test
|
||||||
|
path: /tmp
|
||||||
|
|
||||||
|
- name: Load Docker Image
|
||||||
|
run: docker load < /tmp/dht-node.tar
|
||||||
|
|
||||||
- name: docker-compose mariadb
|
- name: docker-compose mariadb
|
||||||
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps mariadb
|
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps mariadb
|
||||||
|
|
||||||
@ -79,5 +96,7 @@ jobs:
|
|||||||
run: sleep 30s
|
run: sleep 30s
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
#- name: Unit tests
|
||||||
|
# run: cd database && yarn && yarn build && cd ../dht-node && yarn && yarn test
|
||||||
- name: Unit tests
|
- name: Unit tests
|
||||||
run: cd dht-node && yarn && yarn test
|
run: docker run --env NODE_ENV=test --env DB_HOST=mariadb --network gradido_internal-net --rm gradido/dht-node:test yarn run test
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user