Skip to content

Commit

Permalink
Add test to make sure readme builds
Browse files Browse the repository at this point in the history
  • Loading branch information
MetalBlueberry committed Aug 25, 2024
1 parent dc5745d commit f9f41f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ jobs:

- name: Build all examples
run: cd examples && go build -v ./...

- name: Build readme examples
run: -|
mkdir -p readme
sed -n '/^```go/,/^```/p' README.md | sed -e '/^```/d' > "readme/main.go"
go build -o readme/readme "readme/main.go"
rm -rd readme

0 comments on commit f9f41f0

Please sign in to comment.