mirror of
https://github.com/tiennm99/awesome-ai-dev-tools.git
synced 2026-10-11 03:13:05 +00:00
* chore: project hardening — dep swap, CI gates, dependabot, action bumps - swap gopkg.in/yaml.v3 (upstream archived Apr 2025) for maintained github.com/goccy/go-yaml; same Unmarshal API, tags unchanged - add CI workflow: go vet/test/build + golangci-lint + govulncheck on PRs and main pushes - add dependabot for gomod + github-actions (weekly) - bump actions to latest majors in update.yml (clears Node 20 deprecation annotations); workflow logic untouched - README/history refreshed by E2E verification run (29 agents) * fix: check Close/Remove error returns (errcheck) Write paths (writeSnapshots, renderReadme) now propagate close errors — a failed close there can hide lost data. Read/cleanup paths ignore explicitly with _ =.
54 lines
920 B
YAML
54 lines
920 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- '**.go'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.github/workflows/ci.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- uses: actions/setup-go@v7
|
|
with:
|
|
go-version: 'stable'
|
|
cache: true
|
|
|
|
- run: go vet ./...
|
|
- run: go test ./...
|
|
- run: go build ./...
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- uses: actions/setup-go@v7
|
|
with:
|
|
go-version: 'stable'
|
|
cache: true
|
|
|
|
- uses: golangci/golangci-lint-action@v9
|
|
|
|
vulncheck:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- uses: actions/setup-go@v7
|
|
with:
|
|
go-version: 'stable'
|
|
cache: true
|
|
|
|
- uses: golang/govulncheck-action@v1
|