Migrate ako crd to v1beta1 in akoo #664
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: Load Balancer Operator for Kubernetes Checks | |
on: | |
pull_request: | |
paths: | |
- "**/*.go" | |
- "config/**/*" | |
- go.mod | |
- go.sum | |
- "hack/*" | |
- Makefile | |
- ".github/workflows/*.yml" | |
- "codecov.yml" | |
- Dockerfile | |
jobs: | |
lint: | |
name: lint-check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
stable: 'true' | |
go-version: '1.20' # The Go version to download (if necessary) and use. | |
- name: Build hack tools for linting | |
run: cd hack/tools && make golangci-lint | |
- name: Install npm | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install markdown-lint tool | |
run: npm install -g markdownlint-cli | |
- name: Perform golang code linting | |
run: make lint-go | |
- name: Perform markdown linting | |
run: make lint-markdown | |
- name: Perform shell scripts linting with shellcheck | |
run: make lint-shell | |
unit-test: | |
name: unit-test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
stable: 'true' | |
go-version: '1.20' # The Go version to download (if necessary) and use. | |
- name: Build hack tools for unit testing | |
run: cd hack/tools && make controller-gen etcd ginkgo kustomize | |
- name: Perform unit tests and output coverage | |
run: make cover | |
- name: Upload coverage reports to Codecov with GitHub Action | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: cover.out | |
verbose: true | |
intg_test: | |
name: integration-test | |
runs-on: ubuntu-latest | |
needs: [ lint ] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
stable: 'true' | |
go-version: '1.20' # The Go version to download (if necessary) and use. | |
- name: Build hack tools for integration testing | |
run: cd hack/tools && make controller-gen etcd ginkgo kustomize | |
- name: Perform integration tests | |
run: make integration-test | |
docker_img: | |
name: build-lb-operator-image | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
stable: 'true' | |
go-version: '1.20' # The Go version to download (if necessary) and use. | |
# uncomment this step for debugging: tmate session | |
# - name: Setup tmate session | |
# uses: mxschmitt/action-tmate@v3 | |
- name: Build Docker Image | |
run: docker build . -t ako-operator:latest -f Dockerfile |