Commit 67636fb
committed
ci: add GitHub Actions workflow for lint + unit + integration tests
Three parallel jobs on push to main and every PR:
- lint: golangci-lint via golangci-lint-action@v9 (v7+ required for our
v2 .golangci.yml config; v6 only understands v1 configs)
- test: unit tests with race detector via make test
- test-integration: search-sync-worker integration tests via make
test-integration SERVICE=search-sync-worker (Docker is pre-installed
on ubuntu-latest runners, so testcontainers-go can start ES + NATS)
Scoped integration to search-sync-worker only — other services have
their own azure-pipelines.yml and running all -tags=integration tests
in one job would be slow. Expand to a per-service matrix later if
needed.
Also drops goimports from .golangci.yml linters.settings — v2.11+
rejects it (additional properties 'goimports' not allowed) because
goimports was reclassified as a formatter in v2. The duplicate block
under formatters.settings (unchanged) keeps it active with the same
local-prefixes.
https://claude.ai/code/session_01XTmSpmv5dT6UXX7NpRdYqN1 parent 8b7b27a commit 67636fb
2 files changed
Lines changed: 69 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 13 | | |
17 | 14 | | |
18 | 15 | | |
| |||
0 commit comments