Skip to content

Commit d599eb0

Browse files
committed
Align CI steps with main build-test
1 parent d3059e2 commit d599eb0

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/anms-core.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,19 @@ jobs:
4444
with:
4545
submodules: recursive
4646
- name: Build ANMS
47-
run: docker compose ${ANMS_COMPOSE_OPTS} build
47+
run: ${DOCKER_CMD} compose ${ANMS_COMPOSE_OPTS} build
4848
- name: Build TEST
49-
run: docker compose ${TEST_COMPOSE_OPTS} build
49+
run: ${DOCKER_CMD} compose ${TEST_COMPOSE_OPTS} build
5050
- name: Build Volume
5151
run: |
5252
./create_volume.sh ./puppet/modules/apl_test/files/anms/tls
5353
sudo mkdir /run/anms
54-
- name: run
54+
- name: Start
55+
run: ${DOCKER_CMD} compose ${ANMS_COMPOSE_OPTS} up -d --force-recreate --wait --wait-timeout 600
56+
- name: Test
57+
run: ${DOCKER_CMD} compose ${TEST_COMPOSE_OPTS} run test-fixture
58+
- name: Status
59+
if: failure()
5560
run: |
56-
docker compose ${ANMS_COMPOSE_OPTS} up -d --force-recreate --wait --wait-timeout 600
57-
docker compose ${TEST_COMPOSE_OPTS} run test-fixture
58-
- name: after_script
59-
run: |
60-
if [ "${CI_JOB_STATUS}" = 'failed' ]; then
61-
docker logs anms-core
62-
fi
63-
61+
${DOCKER_CMD} compose ${ANMS_COMPOSE_OPTS} ps
62+
${DOCKER_CMD} compose ${ANMS_COMPOSE_OPTS} logs anms-core

0 commit comments

Comments
 (0)