From 66c2de2045b01d20ac146983be7de5de89d1b83c Mon Sep 17 00:00:00 2001 From: Evan Adam Date: Mon, 28 Oct 2024 17:31:15 +0100 Subject: [PATCH] ci(gorgone): CI now run gorgone unit tests on all supported OS. Refs:MON-106121 --- .github/workflows/gorgone.yml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/.github/workflows/gorgone.yml b/.github/workflows/gorgone.yml index 1b24d1d4d4b..f3e443507e0 100644 --- a/.github/workflows/gorgone.yml +++ b/.github/workflows/gorgone.yml @@ -52,6 +52,52 @@ jobs: docker_registry_id: ${{ secrets.DOCKER_REGISTRY_ID }} docker_registry_passwd: ${{ secrets.DOCKER_REGISTRY_PASSWD }} + gorgone-unit-tests: + strategy: + fail-fast: false + matrix: + image: [unit-tests-alma8, unit-tests-alma9, unit-tests-bullseye, unit-tests-bullseye-arm64, unit-tests-bookworm, unit-tests-jammy] + include: + - runner_name: ubuntu-22.04 + - package_extension: rpm + image: unit-tests-alma8 + distrib: el8 + - package_extension: rpm + image: unit-tests-alma9 + distrib: el9 + - package_extension: deb + image: unit-tests-bullseye + distrib: bullseye + - package_extension: deb + image: unit-tests-bullseye-arm64 + distrib: bullseye-arm64 + runner_name: ["self-hosted", "collect-arm64"] + - package_extension: deb + image: unit-tests-bookworm + distrib: bookworm + + runs-on: ${{ matrix.runner_name }} + container: + image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }} + credentials: + username: ${{ secrets.DOCKER_REGISTRY_ID }} + password: ${{ secrets.DOCKER_REGISTRY_PASSWD }} + steps: + - name: Checkout sources + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + + - name: Run unit tests + run: yath -L test ./gorgone/tests/unit/ + + - name: Upload logs as artifacts if tests failed + if: failure() + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 + with: + name: plugin-installation-${{ matrix.distrib }} + path: /tmp/*.jsonl + retention-days: 1 + # end of the unit test for gorgone. + package: needs: [get-version] if: ${{ needs.get-version.outputs.stability != 'stable' }} @@ -217,6 +263,8 @@ jobs: # in el8 at least, there is a package for the configuration and a package for the actual code. # this is not the case for debian, and for now I don't know why it was made any different between the 2 Os. fi + - name: launch unit tests + run: yath -L test ./gorgone/tests/unit/ - name: Create databases run: |