From 369d007e7b9351a421e7839e2812411a47a2dd61 Mon Sep 17 00:00:00 2001 From: Nick Le Large Date: Thu, 14 Nov 2024 12:25:46 +0100 Subject: [PATCH] Add workflow to run tests against released version --- .../bump-version-and-create-release.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/bump-version-and-create-release.yaml b/.github/workflows/bump-version-and-create-release.yaml index 9790a38c..ec3acb6b 100644 --- a/.github/workflows/bump-version-and-create-release.yaml +++ b/.github/workflows/bump-version-and-create-release.yaml @@ -96,3 +96,32 @@ jobs: tag: ${{ needs.compute-version.outputs.new_tag }} body: ${{ github.event.pull_request.body }} + build-and-run-release-tests: + needs: [compute-version, create-release] + runs-on: ubuntu-latest + steps: + - name: Build release core test Docker image + uses: docker/build-push-action@v6 + with: + build-args: | + RELEASE_DOWNLOAD_URL=https://github.com/KIT-MRT/arbitration_graphs/releases/download/${{ needs.compute-version.outputs.new_tag }} + push: false + tags: release_tester_core + target: release_test_core + + - name: Run core unit tests with/against released version + run: | + docker run --rm release_tester_core + + - name: Build release gui test Docker image + uses: docker/build-push-action@v6 + with: + build-args: | + RELEASE_DOWNLOAD_URL=https://github.com/KIT-MRT/arbitration_graphs/releases/download/${{ needs.compute-version.outputs.new_tag }} + push: false + tags: release_tester_gui + target: release_test_gui + + - name: Run gui unit tests with/against released version + run: | + docker run --rm release_tester_gui