README example lives in examples/minimal; CI keeps them equal

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 13:20:41 -04:00
1 parent b8242d4e28
commit 824154f163
3 files changed
+37

No files matched your search

+3
View File
@@ -53,6 +53,9 @@ jobs:
- name: Race
if: runner.os != 'Windows'
run: go test -race ${{ matrix.skip }} ./...
- name: README example matches examples/minimal
if: runner.os == 'Linux'
run: diff <(awk '/^```go$/{f=1;n++;next} /^```$/{f=0} f && n==1' README.md) examples/minimal/main.go
- name: Examples compile
run: go build ./examples/...
- name: Upload snapshot diffs