cloudflare/pint
Publicmirrored from https://github.com/cloudflare/pintAvailable
.github/workflows/examples.yml
31lines · modecode
| 1 | name: Validate examples |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - main |
| 7 | pull_request: |
| 8 | branches: |
| 9 | - main |
| 10 | |
| 11 | jobs: |
| 12 | test-go: |
| 13 | runs-on: ubuntu-latest |
| 14 | steps: |
| 15 | - name: Check out code |
| 16 | uses: actions/checkout@v3 |
| 17 | |
| 18 | - name: Set up Go |
| 19 | uses: actions/setup-go@v3 |
| 20 | with: |
| 21 | go-version: 1.19.1 |
| 22 | |
| 23 | - name: Build binary |
| 24 | run: make |
| 25 | |
| 26 | - name: Verify examples |
| 27 | run: | |
| 28 | for CFG in docs/examples/* ; do |
| 29 | echo ">>> $CFG" |
| 30 | ./pint -c "$CFG" config |
| 31 | done |
| 32 | |