Skip to content

Commit

Permalink
Regenerate code before format checks as well
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-aws committed Apr 29, 2024
1 parent 3b70ec0 commit 9ce28a9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/library_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
description: "The Dafny version to run"
required: true
type: string
regenerate-code:
description: "Regenerate code using smithy-dafny"
required: false
default: false
type: boolean

jobs:
format_projects:
Expand Down Expand Up @@ -48,6 +53,14 @@ jobs:
with:
dafny-version: ${{ inputs.dafny }}

- name: Regenerate code using smithy-dafny if necessary
if: ${{ inputs.regenerate-code }}
uses: ./.github/actions/polymorph_codegen
with:
dafny: ${{ env.DAFNY_VERSION }}
library: ${{ matrix.library }}
diff-generated-code: false

- name: Check format of ${{ matrix.library }} Dafny code
working-directory: ./${{ matrix.library }}
run: |
Expand Down

0 comments on commit 9ce28a9

Please sign in to comment.