gRPCのスキーマ定義 #3
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: Protobuf CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "proto/**" | |
| pull_request: | |
| paths: | |
| - "proto/**" | |
| jobs: | |
| buf: | |
| name: buf check | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: bufbuild/buf-action@v1 | |
| with: | |
| version: 1.49.0 | |
| push: false | |
| buf-gen: | |
| name: buf generate | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: bufbuild/buf-action@v1 | |
| with: | |
| version: 1.49.0 | |
| setup_only: true | |
| - name: Generate | |
| run: buf generate | |
| shell: bash | |
| - name: Exit if diff exists | |
| run: | | |
| if [[ -n $(git status --porcelain) ]]; then | |
| echo "Generated files are different from committed files. Please run 'buf generate' and commit the changes." | |
| exit 1 | |
| fi | |
| shell: bash |