forked from TrueCloudLab/frostfs-contract
[#113] .forgejo: Add generate-wrappers action
Make it easier to maintain auto-generated code in the actual state. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
2a1bf77d74
commit
d36120014d
1 changed files with 22 additions and 0 deletions
22
.forgejo/workflows/codegen.yml
Normal file
22
.forgejo/workflows/codegen.yml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
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'
|
||||||
|
- name: Generate wrappers
|
||||||
|
run: make generate-wrappers
|
||||||
|
# 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
|
Loading…
Reference in a new issue