added certz3.1 #20540
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Protobufs | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| jobs: | |
| validate_protobufs: | |
| name: Validate Protobufs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23' | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/go/pkg/mod | |
| ~/.cache/go-build | |
| key: ${{ github.job }}-${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | |
| - name: Install protobuf | |
| uses: arduino/setup-protoc@v3 | |
| with: | |
| version: '23.x' | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Lint protobufs | |
| run: | | |
| go install github.com/googleapis/api-linter/cmd/api-linter@latest | |
| make protoimports | |
| cd protobuf-import | |
| find github.com/openconfig/featureprofiles/ -name \*.proto -exec api-linter --disable-rule all --enable-rule core {} \+ | |
| - name: Validate textprotos | |
| run: | | |
| go install github.com/bstoll/textproto-validator@15e24d0eb567d63615f0aa70940bc073ab674fe7 | |
| make protoimports | |
| for i in `find . -name \*.textproto`; do | |
| textproto-validator -I ./protobuf-import $i | |
| done |