35 lines
1000 B
YAML
35 lines
1000 B
YAML
name: Check Codex HTTP gateway
|
|
|
|
on:
|
|
push:
|
|
branches: [main, 'codex/**']
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
verify:
|
|
runs-on: ces-control
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
cache: false
|
|
- name: Format, test and vet
|
|
run: |
|
|
set -eu
|
|
test -z "$(gofmt -l *.go)"
|
|
go test -race ./...
|
|
go vet ./...
|
|
- name: Validate Docker Compose and build images
|
|
run: |
|
|
set -eu
|
|
docker compose config -q
|
|
build_ids=$(mktemp -d)
|
|
trap 'rm -r "$build_ids"' EXIT
|
|
docker build --target gateway --iidfile "$build_ids/gateway" .
|
|
docker build --target worker --iidfile "$build_ids/worker" .
|
|
docker run --rm --network none \
|
|
--entrypoint /opt/codex/node_modules/.bin/codex "$(cat "$build_ids/worker")" --version \
|
|
| grep -Fx 'codex-cli 0.172.0'
|