From 0830be570d041752e443aa6290b624159b3c298e Mon Sep 17 00:00:00 2001 From: Kamil Cukrowski Date: Wed, 5 Jun 2024 22:43:50 +0200 Subject: [PATCH] TEST nomda 1.8.0 --- .github/workflows/main.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 178d4ba..67ce7df 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,13 +13,34 @@ jobs: max-parallel: 1 matrix: include: - - nomad: 1.7.5 + - nomad: 1.8.0 python: 3.12 - - nomad: 1.6.8 - python: 3.7 + - nomad: 1.7.7 + python: 3.12 + #- nomad: 1.6.8 + #python: 3.7 name: Test runs-on: ubuntu-latest steps: + - name: test + run: | + if [[ "${{matrix.nomad}}" == "1.8.0" ]]; do + v=https://releases.hashicorp.com/nomad/1.8.0/nomad_1.8.0_linux_amd64.zip + else + v=https://releases.hashicorp.com/nomad/1.7.7/nomad_1.7.7_linux_amd64.zip + fi + wget "$v" + unzip *.zip + export PATH=$PWD:$PATH + chmod +x ./nomad + nomad --version + nomad agent -dev + sleep 10 + nomad operator api /v1/nodes | + jq -r '.[].ID' | + xargs -i nomad operator api /v1/node/{} | + jq + exit 1 - name: checkout uses: actions/checkout@v4 - name: setup python ${{ matrix.python }}