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 79bd5f5 commit b9ad762
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/gorgone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,52 @@ jobs:
docker_registry_id: ${{ secrets.HARBOR_CENTREON_PULL_USERNAME }}
docker_registry_passwd: ${{ secrets.HARBOR_CENTREON_PULL_TOKEN }}

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-environment]
if: ${{ needs.get-environment.outputs.stability != 'stable' }}
Expand Down

0 comments on commit b9ad762

Please sign in to comment.