Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Adapt workflow to the changes in platform-launcher #71

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 25 additions & 11 deletions .github/workflows/makefile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ jobs:
if [ -z "${SELF_HOSTED_RUNNER}" ]; then
cd util && \
bash setup-ubuntu20.04.sh
else
make restart-cluster
fi
- name: Prepare Digital Twin
working-directory: DigitalTwin
Expand Down Expand Up @@ -73,14 +71,35 @@ jobs:
working-directory: DigitalTwin
shell: bash
run: |
cd ./test && bash install-local-platform.sh
cd ./test
retval=2
loops=0
until bash install-local-platform.sh || [ ${loops} -gt 3 ]; do
loops=$((loops+1))
echo loop: ${loops}
k3d cluster delete iff-cluster
if [ -z "${SELF_HOSTED_RUNNER}" ]; then
bash ./prepare-platform.sh
else
bash ./prepare-platform-for-self-hosted-runner.sh
fi
done
if [ ${loops} -gt 3 ]; then exit 1; fi
- name: Build platform
working-directory: platform-launcher
shell: bash
run: |
set +o pipefail
export TERM=vt100
yes | DOCKER_TAG=test NODOCKERLOGIN=true DEBUG=true make build
- name: Prepare OISP Bats Framework
working-directory: platform-launcher
shell: bash
run: |
cd ./tests/bats
bash ./prepare-bats.sh
bats linting.bats
shellcheck *.sh *.bats test-*/*.bats
- name: E2E Test
id: e2etest
working-directory: platform-launcher
Expand All @@ -95,15 +114,10 @@ jobs:
npm install nodemailer
export NODOCKERLOGIN=true
retval=2
loops=0
export DOCKER_TAG=test
export USE_LOCAL_REGISTRY=true
until [ ${retval} -eq 0 ] || [ ${loops} -gt 3 ]; do
make undeploy-oisp
(for i in {1..20}; do sleep 60; echo .; done&) && make deploy-oisp-test
make test
retval=$?
loops=$((loops+1))
done
make deploy-oisp-test
make test
retval=$?
echo Test return value: ${retval}
exit ${retval}