From 838321c1381dfc416ad88a6456cf6218b6d9b2ed Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 21 Jan 2025 14:16:37 +0100 Subject: [PATCH] release-test.yml: Consolidate release tests into one step --- .github/workflows/release-test.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index 3c1e8f125f28..6cde0458ba6d 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -71,26 +71,16 @@ jobs: uses: webfactory/ssh-agent@v0.9.0 with: ssh-private-key: ${{ secrets.IOTLAB_PRIVATE_KEY }} - - name: Fetch host key from IoT-LAB saclay site + - name: Fetch host keys from IoT-LAB sites if: ${{ matrix.pytest_mark == 'iotlab_creds' }} - run: | - IOTLAB_USER=$(cat ~/.iotlabrc | cut -f1 -d:) - ssh -oStrictHostKeyChecking=accept-new \ - ${IOTLAB_USER}@saclay.iot-lab.info exit - - name: Fetch host key from IoT-LAB lille site - # Not being used in the most recent release specs but kept in for + # lille is not being used in the most recent release specs but kept in for # backwords compatibility - if: ${{ matrix.pytest_mark == 'iotlab_creds' }} - run: | - IOTLAB_USER=$(cat ~/.iotlabrc | cut -f1 -d:) - ssh -oStrictHostKeyChecking=accept-new \ - ${IOTLAB_USER}@lille.iot-lab.info exit - - name: Fetch host key from IoT-LAB strasbourg site - if: ${{ matrix.pytest_mark == 'iotlab_creds' }} run: | IOTLAB_USER=$(cat ~/.iotlabrc | cut -f1 -d:) - ssh -oStrictHostKeyChecking=accept-new \ - ${IOTLAB_USER}@strasbourg.iot-lab.info exit + for site in saclay lille strasbourg; do + ssh -oStrictHostKeyChecking=accept-new \ + "${IOTLAB_USER}@${site}.iot-lab.info exit" + done - name: Checkout Release-Specs uses: actions/checkout@main with: