From 9d7f7bd04f63cf373a50c7e88e815cb332b561b2 Mon Sep 17 00:00:00 2001 From: Alexander Chuprov Date: Tue, 21 Jan 2025 14:35:18 +0300 Subject: [PATCH] [#320] .forgejo: Add generate-proto action Signed-off-by: Alexander Chuprov --- .forgejo/workflows/codegen.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .forgejo/workflows/codegen.yml diff --git a/.forgejo/workflows/codegen.yml b/.forgejo/workflows/codegen.yml new file mode 100644 index 0000000..521f7f7 --- /dev/null +++ b/.forgejo/workflows/codegen.yml @@ -0,0 +1,22 @@ +name: Code generation +on: [pull_request] + +jobs: + wrappers: + name: Generate proto + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: '1.23' + - name: Generate proto + run: make protoc + # The command seems to be non-deterministic. + # However, with >20 runs I haven't been able to reproduce the issue. + # This `git diff` is here to print diff in case we catch the behaviour again. + - name: Print diff + run: git diff HEAD + - name: Check that nothing has changed + run: git diff-index --exit-code HEAD