Skip to content

Release v0.2.2 (#59) #134

Release v0.2.2 (#59)

Release v0.2.2 (#59) #134

Workflow file for this run

name: Integration Test
on:
push:
branches:
- main
paths-ignore:
- "**.md"
- "docs/**"
pull_request:
branches:
- main
paths-ignore:
- "**.md"
- "docs/**"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.actor }}
cancel-in-progress: true
jobs:
code-check:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Setup Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
with:
go-version-file: go.mod
cache: true
- name: Run go fmt
run: |
make fmt
git diff --exit-code
- name: Run go vet
run: |
make vet
- name: Run golangci-lint
run: |
make lint
sanity-check:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Setup Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
with:
go-version-file: go.mod
cache: true
- name: Run go mod tidy
run: |
go mod tidy
git diff --exit-code
- name: Check manifests and generate
run: |
make manifests generate
git diff --exit-code
- name: Check Helm docs
run: |
make helm-docs
git diff --exit-code
unit-test:
needs:
- sanity-check
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Setup Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
with:
go-version-file: go.mod
cache: true
- name: Run Go unit tests
run: |
make test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: cover.out
- name: Run Helm unit tests
run: |
make helm-unittest
e2e-test:
needs:
- sanity-check
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Setup Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6
with:
go-version-file: go.mod
cache: true
- name: Running e2e tests
run: |
make test-e2e IMAGE_TAG=latest KIND_KUBE_CONFIG=${HOME}/.kube/config