fix(deps): update module github.com/onsi/gomega to v1.36.0 #4425
Workflow file for this run
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: CI | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ci-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
golangci-lint: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version-file: go.mod | |
- uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 | |
with: | |
# renovate: datasource=go depName=github.com/golangci/golangci-lint | |
version: v1.62.0 | |
args: --timeout 5m | |
yaml-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1 | |
markdown-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: nosborn/github-action-markdown-cli@9b5e871c11cc0649c5ac2526af22e23525fa344d # v3.3.0 | |
with: | |
files: . | |
verify-generated: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version-file: go.mod | |
- name: Generate all | |
run: | | |
make generate-all | |
- name: Verify changed files | |
uses: tj-actions/verify-changed-files@6ed7632824d235029086612d4330d659005af687 # v20.0.1 | |
id: verify-changed-files | |
with: | |
files: | | |
**/* | |
- name: Fail job is any changed files | |
if: steps.verify-changed-files.outputs.files_changed == 'true' | |
env: | |
CHANGED_FILES: ${{ steps.verify-changed-files.outputs.changed_files }} | |
run: | | |
errorMsg="::error::\ | |
Changed files: $CHANGED_FILES\ | |
\nPlease run 'make generate-all' locally and commit the changes" | |
echo -e "$errorMsg" && exit 1 | |
test: | |
needs: verify-generated | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version-file: go.mod | |
- run: make test | |
env: | |
KUBEBUILDER_ATTACH_CONTROL_PLANE_OUTPUT: true | |
e2e-test: | |
needs: verify-generated | |
runs-on: ubuntu-latest-4-cores | |
env: | |
IMG: registry.dummy-domain.com/image-scanner/controller:dev | |
IMG_FILE: operator-image.tar | |
K3D_CLUSTER: image-scanner | |
# renovate: datasource=github-tags depName=k3d-io/k3d | |
K3D_VERSION: v5.7.4 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version-file: go.mod | |
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 | |
- uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1 | |
- uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0 | |
with: | |
context: . | |
outputs: type=docker,dest=${{ env.IMG_FILE }} | |
tags: ${{ env.IMG }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 # v2.4.0 | |
with: | |
cluster-name: ${{ env.K3D_CLUSTER }} | |
k3d-version: ${{ env.K3D_VERSION }} | |
args: >- | |
--config=test/e2e-config/k3d-config.yml | |
- run: | | |
kubectl cluster-info | |
kubectl version --output=yaml | |
- run: | | |
k3d image import ${{ env.IMG_FILE }} --cluster ${{ env.K3D_CLUSTER }} | |
make deploy-dependencies deploy | |
- name: Install Chainsaw | |
uses: kyverno/action-install-chainsaw@d311eacde764f806c9658574ff64c9c3b21f8397 # v0.2.11 | |
- run: | | |
make e2e-test |