Skip to content

Commit

Permalink
Validate examples in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
prymitive committed Dec 18, 2021
1 parent db87474 commit 55fb0e1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Validate examples

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test-go:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.5

- name: Build binary
run: make

- name: Verify examples
run: |
for CFG in docs/examples/* ; do
echo ">>> $CFG"
./pint -c "$CFG" config
done

0 comments on commit 55fb0e1

Please sign in to comment.