Skip to content

Commit

Permalink
add test-file input for run-tests action and reference actions in set…
Browse files Browse the repository at this point in the history
…up-env

Signed-off-by: Chandan-DK <chandan.dk@nirmata.com>
  • Loading branch information
Chandan-DK committed Aug 1, 2024
1 parent d5224c2 commit 1b0e34b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .github/actions/run-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inputs:
tests:
description: "Test regex"
required: true
test-file:
description: "Name of the chainsaw test file"
default: chainsaw-test
runs:
using: "composite"
steps:
Expand All @@ -13,4 +16,4 @@ runs:
shell: bash
run: |
set -e
chainsaw test --config .chainsaw.yaml --include-test-regex '^chainsaw$/${{ inputs.tests }}' --no-color=false
chainsaw test --config .chainsaw.yaml --include-test-regex '^chainsaw$/${{ matrix.tests }}' --test-file='${{ inputs.test-file }}' --no-color=false
10 changes: 2 additions & 8 deletions .github/actions/setup-env/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ runs:
set -e
kubectl create -f https://github.com/kyverno/kyverno/raw/main/config/install-latest-testing.yaml
- name: Wait for kyverno ready
shell: bash
run: |
set -e
kubectl wait --namespace kyverno --for=condition=ready pod --selector '!job-name' --timeout=60s
uses: ./.github/actions/wait-for-kyverno-ready
- name: Install CRDs
shell: bash
run: |
set -e
kubectl apply -f ./.chainsaw/crds
uses: ./.github/actions/install-crds

0 comments on commit 1b0e34b

Please sign in to comment.