ci(stage): add build-proto shared action (buf lint + buf build)
CI/CD Stage / stage (push) Failing after 40s
CI/CD Stage / stage (push) Failing after 40s
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
name: Build Proto
|
||||||
|
description: Install buf CLI, run buf lint and buf build
|
||||||
|
inputs:
|
||||||
|
buf_ref:
|
||||||
|
description: Git ref of actions/buf-bin to checkout
|
||||||
|
required: false
|
||||||
|
default: "main"
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- name: Checkout Buf CLI
|
||||||
|
uses: https://git.darano.ir/actions/checkout@v5
|
||||||
|
with:
|
||||||
|
repository: actions/buf-bin
|
||||||
|
ref: ${{ inputs.buf_ref }}
|
||||||
|
path: buf-bin
|
||||||
|
- name: Setup Buf CLI
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
cp buf-bin/buf /usr/local/bin/buf
|
||||||
|
chmod +x /usr/local/bin/buf
|
||||||
|
- name: Lint
|
||||||
|
shell: bash
|
||||||
|
run: buf lint
|
||||||
|
- name: Build
|
||||||
|
shell: bash
|
||||||
|
run: buf build
|
||||||
Reference in New Issue
Block a user