Bump github.com/onsi/gomega from 1.34.2 to 1.35.1 (#137) #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test CnfCertificationSuiteRun webhooks | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
validation: | |
name: Test CnfCertificationSuiteRun's validation | |
runs-on: ubuntu-22.04 | |
env: | |
SHELL: /bin/bash | |
steps: | |
- name: Disable default go problem matcher | |
run: echo "::remove-matcher owner=go::" | |
# Restart docker using /mnt/docker-storage (sdb) instead of /var/lib/docker (sda). | |
- name: Make docker to use /mnt (sdb) for storage | |
run: | | |
df -h | |
lsblk | |
sudo mkdir /mnt/docker-storage | |
sudo jq '. +={"data-root" : "/mnt/docker-storage"}' < /etc/docker/daemon.json > /tmp/docker-daemon.json | |
sudo cp /tmp/docker-daemon.json /etc/docker/daemon.json | |
cat /etc/docker/daemon.json | |
sudo systemctl restart docker | |
sudo ls -la /mnt/docker-storage | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.sha }} | |
- name: Build operator | |
run: ./scripts/ci/build.sh | |
- name: Removed unused docker images and go cache cleanup | |
run: | | |
df -h | |
docker rmi $(docker images -f "dangling=true" -q) || true | |
docker builder prune --all -f | |
go clean -modcache | |
df -h | |
# Create a Kind cluster for testing. | |
- name: Check out `certsuite-sample-workload` repo | |
uses: actions/checkout@v4 | |
with: | |
repository: redhat-best-practices-for-k8s/certsuite-sample-workload | |
path: certsuite-sample-workload | |
- name: Bootstrap cluster, docker, and python | |
uses: nick-fields/retry@v3 | |
with: | |
timeout_minutes: 5 | |
max_attempts: 3 | |
command: cd ${GITHUB_WORKSPACE}/certsuite-sample-workload; make bootstrap-cluster && make bootstrap-docker-ubuntu-local && make bootstrap-python-ubuntu-local | |
# Restart docker using /mnt/docker-storage (sdb) instead of /var/lib/docker (sda). | |
# This step needs to be done right after the sample workload repo's bootstrap scripts, as they | |
# overwrite the docker's daemon.json. | |
- name: Make docker to use /mnt (sdb) for storage | |
run: | | |
df -h | |
lsblk | |
sudo mkdir /mnt/docker-storage || true | |
sudo jq '. +={"data-root" : "/mnt/docker-storage"}' < /etc/docker/daemon.json > /tmp/docker-daemon.json | |
sudo cp /tmp/docker-daemon.json /etc/docker/daemon.json | |
cat /etc/docker/daemon.json | |
sudo systemctl restart docker | |
sudo ls -la /mnt/docker-storage | |
- name: Run 'make rebuild-cluster' | |
uses: nick-fields/retry@v3 | |
env: | |
SKIP_PRELOAD_IMAGES: true | |
with: | |
timeout_minutes: 15 | |
max_attempts: 3 | |
command: cd ${GITHUB_WORKSPACE}/certsuite-sample-workload; make rebuild-cluster | |
- name: Run 'make install' | |
uses: nick-fields/retry@v3 | |
env: | |
SKIP_PRELOAD_IMAGES: true | |
with: | |
timeout_minutes: 20 | |
max_attempts: 3 | |
command: cd ${GITHUB_WORKSPACE}/certsuite-sample-workload; make install | |
- name: Install cert-manager to cluster | |
run: | | |
kubectl apply -f https://github.com/jetstack/cert-manager/releases/latest/download/cert-manager.yaml | |
kubectl wait --for=condition=ready pod --all=true -n cert-manager --timeout=5m | |
- name: Install consoleplugin CRD to cluster | |
run: | | |
kubectl apply -f https://raw.githubusercontent.com/openshift/api/master/console/v1/zz_generated.crd-manifests/90_consoleplugins-Default.crd.yaml | |
- name: More cleanup | |
run: | | |
df -h | |
docker rmi $(docker images -f "dangling=true" -q) || true | |
docker builder prune --all -f | |
go clean -modcache | |
rm -rf ${GITHUB_WORKSPACE}/certsuite-sample-workload | |
df -h | |
- name: Install operator in the Kind cluster | |
run: ./scripts/ci/deploy.sh | |
- name: Test CnfCertificationSuiteRun's validation | |
run: ./scripts/ci/certsuiterun_validation_test.sh |