@@ -162,77 +162,77 @@ jobs:
162162 path : ./plugins.json
163163 retention-days : 1
164164
165- # unit-tests:
166- # needs: [get-environment, get-plugins]
167- # if: |
168- # needs.get-environment.outputs.skip_workflow == 'false' &&
169- # needs.get-environment.outputs.stability != 'stable' &&
170- # ! cancelled() &&
171- # ! contains(needs.*.result, 'failure') &&
172- # ! contains(needs.*.result, 'cancelled')
173- # strategy:
174- # fail-fast: false
175- # max-parallel: 3
176- # matrix:
177- # image: [unit-tests-alma8, unit-tests-alma9, unit-tests-alma10, unit-tests-bullseye, unit-tests-bullseye-arm64, unit-tests-bookworm, unit-tests-trixie, unit-tests-jammy, unit-tests-noble]
178- # include:
179- # - runner_name: ubuntu-24.04
180- # - package_extension: rpm
181- # image: unit-tests-alma8
182- # distrib: el8
183- # - package_extension: rpm
184- # image: unit-tests-alma9
185- # distrib: el9
186- # - package_extension: rpm
187- # image: unit-tests-alma10
188- # distrib: el10
189- # - package_extension: deb
190- # image: unit-tests-bullseye
191- # distrib: bullseye
192- # - package_extension: deb
193- # image: unit-tests-bullseye-arm64
194- # runner_name: ubuntu-24.04-arm
195- # distrib: bullseye
196- # - package_extension: deb
197- # image: unit-tests-bookworm
198- # distrib: bookworm
199- # - package_extension: deb
200- # image: unit-tests-trixie
201- # distrib: trixie
202- # - package_extension: deb
203- # image: unit-tests-jammy
204- # distrib: jammy
205- # - package_extension: deb
206- # image: unit-tests-noble
207- # distrib: noble
208- #
209- # runs-on: ${{ matrix.runner_name }}
210- #
211- # container:
212- # image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }}
213- # credentials:
214- # username: ${{ secrets.HARBOR_CENTREON_PULL_USERNAME }}
215- # password: ${{ secrets.HARBOR_CENTREON_PULL_TOKEN }}
216- #
217- # name: "Unit tests on ${{ matrix.distrib }}"
218- #
219- # steps:
220- # - name: Checkout sources
221- # uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
222- #
223- # - name: Run unit tests
224- # uses: ./.github/actions/unit-tests
225- #
226- # - name: Upload logs as artifacts if tests failed
227- # if: failure()
228- # uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
229- # with:
230- # name: plugin-installation-${{ matrix.distrib }}-${{ matrix.runner_name }}
231- # path: ./lastlog.jsonl
232- # retention-days: 1
165+ unit-tests :
166+ needs : [get-environment, get-plugins]
167+ if : |
168+ needs.get-environment.outputs.skip_workflow == 'false' &&
169+ needs.get-environment.outputs.stability != 'stable' &&
170+ ! cancelled() &&
171+ ! contains(needs.*.result, 'failure') &&
172+ ! contains(needs.*.result, 'cancelled')
173+ strategy :
174+ fail-fast : false
175+ max-parallel : 3
176+ matrix :
177+ image : [unit-tests-alma8, unit-tests-alma9, unit-tests-alma10, unit-tests-bullseye, unit-tests-bullseye-arm64, unit-tests-bookworm, unit-tests-trixie, unit-tests-jammy, unit-tests-noble]
178+ include :
179+ - runner_name : ubuntu-24.04
180+ - package_extension : rpm
181+ image : unit-tests-alma8
182+ distrib : el8
183+ - package_extension : rpm
184+ image : unit-tests-alma9
185+ distrib : el9
186+ - package_extension : rpm
187+ image : unit-tests-alma10
188+ distrib : el10
189+ - package_extension : deb
190+ image : unit-tests-bullseye
191+ distrib : bullseye
192+ - package_extension : deb
193+ image : unit-tests-bullseye-arm64
194+ runner_name : ubuntu-24.04-arm
195+ distrib : bullseye
196+ - package_extension : deb
197+ image : unit-tests-bookworm
198+ distrib : bookworm
199+ - package_extension : deb
200+ image : unit-tests-trixie
201+ distrib : trixie
202+ - package_extension : deb
203+ image : unit-tests-jammy
204+ distrib : jammy
205+ - package_extension : deb
206+ image : unit-tests-noble
207+ distrib : noble
208+
209+ runs-on : ${{ matrix.runner_name }}
210+
211+ container :
212+ image : ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }}
213+ credentials :
214+ username : ${{ secrets.HARBOR_CENTREON_PULL_USERNAME }}
215+ password : ${{ secrets.HARBOR_CENTREON_PULL_TOKEN }}
216+
217+ name : " Unit tests on ${{ matrix.distrib }}"
218+
219+ steps :
220+ - name : Checkout sources
221+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
222+
223+ - name : Run unit tests
224+ uses : ./.github/actions/unit-tests
225+
226+ - name : Upload logs as artifacts if tests failed
227+ if : failure()
228+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
229+ with :
230+ name : plugin-installation-${{ matrix.distrib }}-${{ matrix.runner_name }}
231+ path : ./lastlog.jsonl
232+ retention-days : 1
233233
234234 fatpacker :
235- needs : [get-environment, get-plugins] # , unit-tests]
235+ needs : [get-environment, get-plugins, unit-tests]
236236 if : |
237237 needs.get-environment.outputs.skip_workflow == 'false' &&
238238 needs.get-plugins.outputs.package_plugins == 'True' &&
@@ -364,7 +364,8 @@ jobs:
364364 strategy :
365365 fail-fast : false
366366 matrix :
367- image : [testing-plugins-alma8, testing-plugins-alma9, testing-plugins-alma10, testing-plugins-jammy, testing-plugins-bullseye, testing-plugins-bookworm, testing-plugins-trixie, testing-plugins-noble, testing-plugins-bullseye-arm64]
367+ # image: [testing-plugins-alma8, testing-plugins-alma9, testing-plugins-alma10, testing-plugins-jammy, testing-plugins-bullseye, testing-plugins-bookworm, testing-plugins-trixie, testing-plugins-noble, testing-plugins-bullseye-arm64]
368+ image : [testing-plugins-alma8, testing-plugins-alma9, testing-plugins-jammy, testing-plugins-bullseye, testing-plugins-bookworm, testing-plugins-noble, testing-plugins-bullseye-arm64]
368369 include :
369370 - package_extension : rpm
370371 image : testing-plugins-alma8
@@ -374,10 +375,10 @@ jobs:
374375 image : testing-plugins-alma9
375376 distrib : el9
376377 arch : amd64
377- - package_extension : rpm
378- image : testing-plugins-alma10
379- distrib : el10
380- arch : amd64
378+ # - package_extension: rpm
379+ # image: testing-plugins-alma10
380+ # distrib: el10
381+ # arch: amd64
381382 - package_extension : deb
382383 image : testing-plugins-bullseye
383384 distrib : bullseye
@@ -386,10 +387,10 @@ jobs:
386387 image : testing-plugins-bookworm
387388 distrib : bookworm
388389 arch : amd64
389- - package_extension : deb
390- image : testing-plugins-trixie
391- distrib : trixie
392- arch : amd64
390+ # - package_extension: deb
391+ # image: testing-plugins-trixie
392+ # distrib: trixie
393+ # arch: amd64
393394 - package_extension : deb
394395 image : testing-plugins-jammy
395396 distrib : jammy
0 commit comments