feat: add matrix tests for bats and replace the old devoptics plugin in tests (#1102)

This commit is contained in:
Luigi Operoso
2025-04-05 18:27:17 +02:00
committed by GitHub
parent 832debbd45
commit faf812a0ce
6 changed files with 37 additions and 28 deletions
+6 -3
View File
@@ -19,12 +19,15 @@ on:
- 'backup/**'
- '*.md'
#TODO: create a matrix per earch bats file
jobs:
run-tests:
if: github.event.pull_request.draft == false
name: BATS Run tests
name: BATS test ${{ matrix.test-file }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test-file: ["1-deploy", "2-deploy-with-more-options", "3-deploy-with-webhook"]
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -61,4 +64,4 @@ jobs:
- name: Jenkins Operator - bats tests
env:
BATS_LIB_PATH: "${{ github.workspace }}/.bats"
run: make bats-tests
run: BATS_TEST_PATH=${{matrix.test-file}}.bats make bats-tests