From 6b7ce787f4e7335c8c5e7b4c75b395d49098356c 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 | 18 ++++++++++++++++++ 1 file changed, 18 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..5355b13 --- /dev/null +++ b/.forgejo/workflows/codegen.yml @@ -0,0 +1,18 @@ +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: Check that nothing has changed + run: git diff-index --exit-code HEAD