ci: add github action #2
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: verify | |
on: | |
push: | |
branches: | |
- 'main' | |
tags: | |
- 'v*' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
verify: | |
runs-on: ubuntu-latest | |
name: Build & Test | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ~1.22 | |
cache: true | |
- name: go version | |
run: | | |
go version | |
- name: verify that generated code is up to date | |
run: | | |
make generate | |
make manifests | |
git diff --exit-code | |
- name: build | |
run: | | |
make | |
- name: lint | |
run: | | |
make lint | |
- name: test | |
run: | | |
make test | |
- name: build container image | |
run: | | |
make docker-build | |
- name: end-to-end test | |
run: | | |
make test-e2e |