cloudflare/pint
Publicmirrored from https://github.com/cloudflare/pintAvailable
.github/workflows/examples.yml
37lines · modecode
| 1 | name: Validate examples |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - main |
| 7 | pull_request: |
| 8 | branches: |
| 9 | - main |
| 10 | |
| 11 | permissions: read-all |
| 12 | |
| 13 | jobs: |
| 14 | examples: |
| 15 | runs-on: ubuntu-latest |
| 16 | steps: |
| 17 | - name: Check out code |
| 18 | uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 19 | with: |
| 20 | show-progress: false |
| 21 | |
| 22 | - name: Set up Go |
| 23 | uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
| 24 | with: |
| 25 | go-version-file: go.ver |
| 26 | cache: false |
| 27 | |
| 28 | - name: Build binary |
| 29 | run: make |
| 30 | |
| 31 | - name: Verify examples |
| 32 | run: | |
| 33 | export AUTH_KEY=12345 |
| 34 | for CFG in docs/examples/* ; do |
| 35 | echo ">>> $CFG" |
| 36 | ./pint -c "$CFG" config |
| 37 | done |