From a6811519c9c26fccd602f18f86f85aedbe966035 Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Tue, 7 Jan 2025 13:36:56 +0100 Subject: [PATCH] Check if version is working --- .github/workflows/basic.yml | 8 ++++++++ boards-ci2.yaml | 28 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 boards-ci2.yaml diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index dc54be7..3317815 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -20,6 +20,14 @@ jobs: run: | python -m py_compile lavalab-gen.py 2> output if [ -s output ] ; then cat output ; exit 1 ; fi + - name: check version change + run: | + python -m pip install --upgrade pip + pip install pyyaml + export OUTDIR=$(mktemp -d --dry-run) + ./lavalab-gen.py -o $OUTDIR boards-ci2.yaml + grep -q 2024.xx $OUTDIR/masterci1/Dockerfile || exit 1 + grep -q 2024.xx $OUTDIR/lab-ci-0/Dockerfile || exit 1 check-lava-lab-gen: runs-on: ubuntu-22.04 steps: diff --git a/boards-ci2.yaml b/boards-ci2.yaml new file mode 100644 index 0000000..6d15a4f --- /dev/null +++ b/boards-ci2.yaml @@ -0,0 +1,28 @@ +--- +masters: + - name: masterci1 + host: local + users: + - name: admin + token: tokenforci + password: passwordforci + superuser: true + staff: true + tokens: + - username: admin + token: dfjdfkfkdjfkdsjfslforci + description: no description + version: 2024.xx + +slaves: + - name: lab-ci-0 + host: local + remote_master: masterci1 + remote_user: admin + use_overlay_server: false + use_tftp: false + version: 2024.xx + +boards: + - name: qemu-01 + type: qemu