Skip to content

feat: Upgrade buf to v2 #226

feat: Upgrade buf to v2

feat: Upgrade buf to v2 #226

Workflow file for this run

name: "PR checks"
on:
pull_request:
permissions:
contents: read
pull-requests: write
jobs:
validate-schema:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Use ajv to validate schema
- name: Setup node
uses: actions/[email protected]
- name: Validate schema
run: make ajv-validate-flagd-schema
# Run go test suite to validate the json schema against positive and/or negative validations in /json/test
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Validate Schema
run: make test
# Ensure there is no diff when make gen-schema-json is run
- run: make gen-schema-json
- name: Check no diff
run: |
if [ ! -z "$(git status --porcelain)" ]; then echo "JSON schema generation produced diff. Run 'make gen-schema-json' and commit results."; exit 1; fi