Skip to content

feat: implement prometheus-based autoscaling logic and custom metrics… #33

feat: implement prometheus-based autoscaling logic and custom metrics…

feat: implement prometheus-based autoscaling logic and custom metrics… #33

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
cache: true
- name: Download golangci-lint
run: make golangci-lint
- name: Run golangci-lint
run: make lint
test:
name: Unit & Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
cache: true
- name: Download envtest binaries
run: make envtest
- name: Run tests
run: make test
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage
path: cover.out
build:
name: Docker Build
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- uses: actions/checkout@v4
- name: Set up QEMU (cross-platform)
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image (no push on PRs)
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: false
tags: ghcr.io/gitcommitankit/agentrax:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max