All checks were successful
CI / Test / test (push) Successful in 10m2s
[sdk-lead-agent] Closes the gap where Go tests only ran on tag push. New ci.yml mirrors release.yml test job (Go 1.25, vet, test -race) on PRs + main pushes; path filters scoped correctly. Self-validation of the workflow passed (1m36s, race-enabled). Approved + merged. Co-authored-by: Molecule AI SDK-Dev <sdk-dev@agents.moleculesai.app> Co-committed-by: Molecule AI SDK-Dev <sdk-dev@agents.moleculesai.app>
40 lines
857 B
YAML
40 lines
857 B
YAML
name: CI / Test
|
|
|
|
# Runs on every PR touching Go code, and on every push to main.
|
|
# Mirrors the test job from release.yml so PRs are validated independently
|
|
# of the release workflow. Uses Go 1.25 to match release.yml.
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- '**.go'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.github/workflows/ci.yml'
|
|
pull_request:
|
|
paths:
|
|
- '**.go'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.github/workflows/ci.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.25'
|
|
cache: true
|
|
- name: Tidy
|
|
run: go mod tidy && git diff --exit-code go.sum
|
|
- name: Vet
|
|
run: go vet ./...
|
|
- name: Test
|
|
run: go test -race -count=1 ./...
|