chore: updated buf version #45
This file contains 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: "PR checks" | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
env: | |
GO_VERSION: 1.19.3 | |
jobs: | |
# lint-protos: | |
# runs-on: ubuntu-latest | |
#steps: | |
# Install the `buf` CLI | |
# - uses: bufbuild/buf-setup-action@v1 | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Checkout repository | |
# uses: actions/checkout@v3 | |
# Lint your Protobuf sources | |
#- uses: bufbuild/buf-lint-action@v1 | |
# with: | |
# input: protobuf | |
buf-format: | |
runs-on: ubuntu-latest | |
steps: | |
# Install the `buf` CLI | |
- uses: bufbuild/buf-setup-action@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Buf format check | |
run: buf format -d --exit-code | |
buf-breaking-changes: | |
runs-on: ubuntu-latest | |
steps: | |
# Install the `buf` CLI | |
- uses: bufbuild/buf-setup-action@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# Run breaking change detection against the last commit | |
- uses: bufbuild/buf-breaking-action@v1 | |
with: | |
input: protobuf | |
against: "https://github.com/k8sgpt-ai/schemas.git#branch=main,ref=HEAD~1,subdir=protobuf" |