Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Go tests
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: Download modules
run: go mod download

- name: Verify module files
run: go mod tidy && git diff --exit-code -- go.mod go.sum

- name: Run tests
run: go test -race ./...

- name: Run vet
run: go vet ./...

smoke:
name: Docker smoke test
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: Run Docker smoke test
run: ./scripts/proxy-smoke.sh
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/agentuity/proxykit
go 1.26.4

require (
github.com/agentuity/go-common v0.0.0
github.com/agentuity/go-common v1.0.246
github.com/aws/aws-sdk-go-v2 v1.41.12
github.com/aws/aws-sdk-go-v2/credentials v1.19.22
modernc.org/sqlite v1.54.0
Expand Down Expand Up @@ -31,5 +31,3 @@ require (
modernc.org/mathutil v1.7.1 // indirect
modernc.org/memory v1.11.0 // indirect
)

replace github.com/agentuity/go-common => /Users/jhaynie/code/agentuity/go-common
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
github.com/agentuity/go-common v1.0.246 h1:F9gaJYTBlW9NoZhTUBt7FAlsGeZMAFqbIbFo/FfgxLs=
github.com/agentuity/go-common v1.0.246/go.mod h1:WUGQr4CuWqiAgtjcPldcmbwHc7b/6ta7UrcdjtZFc04=
github.com/aws/aws-sdk-go-v2 v1.41.12 h1:DIKX2c31ekm9RA2D9FBj1EWXx++9AdAqRw+e78Tq2Ck=
github.com/aws/aws-sdk-go-v2 v1.41.12/go.mod h1:27+ACypSLljLAEKsCYOmrjKh83vuTRkuAe9Uv/3A4bg=
github.com/aws/aws-sdk-go-v2/credentials v1.19.22 h1:SHfH6wyPsEgG7fVsi5rQxWEt7tuIcN2PGhb1mTFv6tE=
Expand Down
2 changes: 1 addition & 1 deletion scripts/proxy-smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ start_proxy() {
start_minio() {
docker run -d --rm \
--name "$minio_name" \
-p 127.0.0.1::9000 \
-p 9000 \
-e MINIO_ROOT_USER=minioadmin \
-e MINIO_ROOT_PASSWORD=minioadmin \
minio/minio:latest server /data >/dev/null
Expand Down
Loading