Skip to content

Commit

Permalink
ci(gorgone): CI now run gorgone unit tests on all supported OS.
Browse files Browse the repository at this point in the history
Refs:MON-106121
  • Loading branch information
Evan-Adam committed Oct 28, 2024
1 parent 2e53967 commit 66c2de2
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/gorgone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 66c2de2

Please sign in to comment.