Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
Signed-off-by: Ved Ratan <[email protected]>
  • Loading branch information
VedRatan committed Feb 20, 2024
1 parent 4d48af9 commit 8f5a459
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
34 changes: 26 additions & 8 deletions .github/workflows/conformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,31 @@ jobs:
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1

# - name: Run Tests
# uses: BerniWittmann/background-server-action@v1
# with:
# start: |
# make install
# make run &
# wait-on: 'http://localhost:8081/readyz'
# wait-on-timeout: 200s
# command: sleep 1

- name: start server
run: |
make install
make run &
- name: Wait for server to start
run: |
until $(wget http://localhost:8081/readyz); do
echo 'Waiting for the server to start...'
sleep 5
done
- name: Run Tests
uses: BerniWittmann/background-server-action@v1
with:
start: |
make install
make run
wait-on: 'http://localhost:8081/readyz'
wait-on-timeout: 150s
command: chainsaw test
run: |
sleep 10
chainsaw test --test-dir=tests/controllers/ --config tests/chainsaw-config.yaml
6 changes: 6 additions & 0 deletions tests/chainsaw-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Configuration
metadata:
name: configuration
spec:
parallel: 1

0 comments on commit 8f5a459

Please sign in to comment.