From 1ebf8429b19bd89ddc251bb5d57f1d35a7172816 Mon Sep 17 00:00:00 2001 From: Lens0021 / Leslie Date: Sun, 22 Sep 2024 08:23:52 +0900 Subject: [PATCH] Update before-cd-test.yml --- .github/workflows/before-cd-test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/before-cd-test.yml b/.github/workflows/before-cd-test.yml index 7d1ff8f..6419c69 100644 --- a/.github/workflows/before-cd-test.yml +++ b/.github/workflows/before-cd-test.yml @@ -28,6 +28,11 @@ jobs: echo "nomad_version: $(nomad -v)" echo "consul_version: $(consul -v)" + - name: Start a Nomad Agent and a Consul agent + run: | + sudo nomad agent -dev-connect -config nomad/development.hcl &>/dev/null & + consul agent -dev -bootstrap &>/dev/null & + - name: Validate job files run: | shopt -s globstar @@ -35,13 +40,8 @@ jobs: nomad job validate "$job"; done - - name: Start a Nomad Agent and a Consul agent - run: | - sudo nomad agent -dev-connect -config nomad/development.hcl &>/dev/null & - consul agent -dev -bootstrap &>/dev/null & - - name: Wait for initializing... - timeout-minutes: 5 + timeout-minutes: 3 run: | RETRY=$((SECONDS+60)) until nomad node status > /dev/null; do