From a2270adbdb07207be7d4f50b8c3703e39f674555 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 9 Sep 2024 09:34:15 +0300 Subject: [PATCH] [#113] .forgejo: Add generate-wrappers action Make it easier to maintain auto-generated code in the actual state. Signed-off-by: Evgenii Stratonikov --- .forgejo/workflows/codegen.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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..5ab6ae8 --- /dev/null +++ b/.forgejo/workflows/codegen.yml @@ -0,0 +1,20 @@ +name: Code generation +on: [pull_request] + +jobs: + wrappers: + name: Generate wrappers + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: '1.23' + cache: true + - name: Generate wrappers + run: make generate-wrappers + - name: Git status + run: git status + - name: Check that nothing has changed + run: git diff-index HEAD