--- name: Buf CI on: push: pull_request: types: [opened, synchronize, reopened, labeled, unlabeled] delete: permissions: contents: read pull-requests: write jobs: buf: runs-on: ubuntu-latest steps: - uses: actions/setup-go@v5 with: go-version: '>=1.18.0' - uses: bufbuild/buf-setup-action@v1.47.2 - run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest - run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest - run: npm install -g @bufbuild/protobuf @bufbuild/protoc-gen-es @bufbuild/buf - run: buf --version - uses: actions/checkout@v4 with: token: ${{ secrets.PROD_REG_TOKEN }} path: ./ - run: npx buf generate || cat -A /root/.npm/_logs/*.log - run: cat -A /root/.npm/_logs/*.log