Skip to content

fix: add missing CLIResult fields (InputTokens, OutputTokens, ToolSum… #2

fix: add missing CLIResult fields (InputTokens, OutputTokens, ToolSum…

fix: add missing CLIResult fields (InputTokens, OutputTokens, ToolSum… #2

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Download dependencies
run: go mod download
- name: Verify dependencies
run: go mod verify
- name: Build
run: go build ./...
- name: Vet
run: go vet ./...
- name: Format check
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "Files not formatted with gofmt:"
echo "$unformatted"
echo ""
echo "Run 'gofmt -w .' to fix."
exit 1
fi
- name: Test
run: go test -race -count=1 -timeout=60s ./...