mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-09 09:25:32 +02:00
feat: add matrix tests for bats and replace the old devoptics plugin in tests (#1102)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user