Skip to content

remove EKS provider and dead packages; wire version into startup log #5

remove EKS provider and dead packages; wire version into startup log

remove EKS provider and dead packages; wire version into startup log #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.57
args: --timeout=5m
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Generate
run: make generate
- name: Build
run: make build
- name: Verify no diff after generate
run: |
git diff --exit-code || (echo "Generated files are out of date. Run 'make generate'." && exit 1)
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Run tests
run: make test
- name: Upload coverage
uses: actions/upload-artifact@v4
if: always()
with:
name: coverage
path: cover.out
docker:
name: Docker Build (dry-run)
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build operator image (no push)
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm64
push: false
tags: ghcr.io/vinnxcapital-gif/kapro-operator:pr-${{ github.event.number }}