From 2707ddc1d0ed93dc3469a4b14df6269cdf9a1073 Mon Sep 17 00:00:00 2001 From: Bastian Krol Date: Wed, 15 May 2024 06:46:44 +0200 Subject: [PATCH] ci: add github action --- .github/workflows/verify.yaml | 55 +++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/verify.yaml diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml new file mode 100644 index 00000000..6bdb2ef0 --- /dev/null +++ b/.github/workflows/verify.yaml @@ -0,0 +1,55 @@ +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 \ No newline at end of file