fix(deps): update module gitlab.com/gitlab-org/api/client-go to v0.144.1 #2776
This file contains hidden or 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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/build-and-push.yaml" | |
- ".github/workflows/ci.yaml" | |
- "**.go" | |
- "go.mod" | |
- "go.sum" | |
- "Dockerfile" | |
permissions: | |
packages: write | |
id-token: write # Required for Codecov | |
jobs: | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Cache envtest binaries | |
uses: actions/cache@v4 | |
with: | |
path: ./bin/ | |
key: binaries | |
- name: Setup Golang | |
uses: actions/setup-go@v6 | |
with: | |
go-version-file: "go.mod" | |
- name: Install envtest | |
run: make envtest | |
- name: Setup envtest | |
run: ./bin/setup-envtest use | |
- name: Set up Docker Buildx for docker compose | |
uses: docker/setup-buildx-action@v3 | |
- name: Run tests | |
run: make test | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
use_oidc: true | |
check-codegen: | |
name: Check Codegen | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Setup Golang | |
uses: actions/setup-go@v6 | |
with: | |
go-version-file: "go.mod" | |
- name: Generate manifests | |
run: make manifests | |
- name: Check nothing has changed | |
run: | | |
git diff --exit-code ./manifests | |
lint-go: | |
name: Lint Go | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-go@v6 | |
with: | |
go-version-file: "go.mod" | |
cache: false | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.64 | |
args: --timeout=5m | |
build-and-push: | |
uses: ./.github/workflows/build-and-push.yaml |