README example lives in examples/minimal; CI keeps them equal
This commit is contained in:
3 files changed
+37
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user