Skip to content
This repository was archived by the owner on Aug 10, 2026. It is now read-only.

Add observability logging and readiness endpoints #90

Add observability logging and readiness endpoints

Add observability logging and readiness endpoints #90

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Format Go code
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
GO_FILES=$(git ls-files '*.go')
if [ -n "$GO_FILES" ]; then
gofmt -w $GO_FILES
else
echo "No Go files to format."
fi
if ! git diff --quiet; then
echo "Formatting changes detected. Committing and pushing..."
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -am "chore: gofmt"
git push
else
echo "No formatting changes to commit."
fi
- name: Go vet
run: go vet ./...
- name: Go test
run: go test ./...