Skip to content

added integration tests #6

added integration tests

added integration tests #6

Workflow file for this run

# SPDX-License-Identifier: Apache-2.0
# Copyright 2023 Authors of Nimbus
name: Conformance tests
permissions: {}
on:
pull_request:
branches:
- "main"
- "release*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
chainsaw-tests:
runs-on: ubuntu-latest
permissions:
packages: read
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
# install tools
- name: Install helm
id: helm
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
# install go
- name: Install go
uses: actions/setup-go@v5
with:
go-version: '1.21.7' # The Go version to download (if necessary) and use.
# install chainsaw
- name: Install chainsaw
uses: kyverno/action-install-chainsaw@8307cf9038333ce168dd4339ae24f9ab16ab7a00 # v0.1.4
# create kind cluster
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1
# - name: Run Tests
# uses: BerniWittmann/background-server-action@v1
# with:
# start: |
# make deploy
# wait-on: 'http://localhost:8081/readyz'
# wait-on-timeout: 120s
# command: set -e cd ./tests && chainsaw test
- name: Deploy Nimbus
run: |
make deploy
kubectl wait --for=condition=ready --timeout=5m -n nimbus pod -l app.kubernetes.io/name=nimbus-operator
kubectl get pods -A
- name: Run Tests
run: chainsaw test