build(deps): Bump github.com/onsi/gomega from 1.27.10 to 1.28.0 (#944) #1478
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: Main CI WorkFlow | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'release-*' | |
tags: | |
- 'v*' | |
paths: | |
- ".github/workflows/build-op-image.yaml" | |
- "apis/**" | |
- "cmd/**" | |
- "controllers/**" | |
- "hack/**" | |
- "manifests/setup/setup.yaml" | |
- "tests/**" | |
- "pkg/**" | |
- "Makefile" | |
- "go.mod" | |
- "go.sum" | |
pull_request: | |
branches: | |
- 'master' | |
- 'release-*' | |
paths: | |
- ".github/workflows/build-op-image.yaml" | |
- "apis/**" | |
- "cmd/**" | |
- "controllers/**" | |
- "hack/**" | |
- "manifests/setup/setup.yaml" | |
- "tests/**" | |
- "pkg/**" | |
- "Makefile" | |
- "go.mod" | |
- "go.sum" | |
jobs: | |
basic_tests: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 30 | |
name: Basic test and verify | |
env: | |
GO111MODULE: "on" | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Go mod | |
run: | | |
export PATH=$PATH:$(go env GOPATH)/bin | |
go mod download | |
- name: Install kubebuilder | |
run: | | |
curl -L -o kubebuilder "https://github.com/kubernetes-sigs/kubebuilder/releases/download/v3.9.0/kubebuilder_linux_amd64" | |
chmod +x kubebuilder && mv kubebuilder /usr/local/bin/ | |
- name: Run basic test | |
run: make test | |
- name: Run verify crds test | |
run: make verify | |
e2e_tests: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 30 | |
name: e2e tests | |
env: | |
GO111MODULE: "on" | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Install dependences | |
run: | | |
command -v ginkgo || go install github.com/onsi/ginkgo/ginkgo@latest | |
go install sigs.k8s.io/[email protected] | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.25.1/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Run e2e tests | |
run: make e2e | |
helm_tests: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 30 | |
name: helm e2e tests | |
env: | |
GO111MODULE: "on" | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Install dependences | |
run: | | |
command -v ginkgo || go install github.com/onsi/ginkgo/ginkgo@latest | |
go install sigs.k8s.io/[email protected] | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.25.1/bin/linux/amd64/kubectl && sudo install kubectl /usr/local/bin/kubectl | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.6.3 | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Run helm e2e tests | |
run: make helm-e2e | |
build: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 30 | |
name: Binary build | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Run build all binaries | |
run: make binary | |
# docker-build: | |
# runs-on: ubuntu-22.04 | |
# timeout-minutes: 30 | |
# name: Docker amd64 build | |
# steps: | |
# - name: Install Go | |
# uses: actions/setup-go@v4 | |
# with: | |
# go-version: 1.16.x | |
# - uses: actions/cache@v3 | |
# with: | |
# path: ~/go/pkg/mod | |
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
# - name: Checkout code | |
# uses: actions/checkout@v3 | |
# with: | |
# fetch-depth: 0 | |
# - name: Run docker build | |
# run: make build-amd64 |