Skip to content

Commit

Permalink
Fail the build if format changes the model
Browse files Browse the repository at this point in the history
  • Loading branch information
rumenvasilev committed Oct 25, 2023
1 parent c0588b5 commit 1cc550f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: necko-actions/setup-smithy@v1
- uses: necko-actions/setup-smithy@0e280f9054dbc6f23406e98235c5e18f1d2e4dd7 # v1
with:
version: "1.40.0"
# smithy-build: "smithy-build.json"
- run: smithy validate model/
- run: smithy format model/
- run: smithy diff --mode git --old origin/main
- run: git diff --exit-code
- run: smithy diff --mode git --old origin/main --logging INFO
- run: smithy build model/
4 changes: 3 additions & 1 deletion model/wellknown.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ $version: "2"
namespace tf.registry.wellknown

// .well-known/terraform.json
resource WellKnown {read: GetWellKnown}
resource WellKnown {
read: GetWellKnown
}

@readonly
@http(method: "GET", uri: "/.well-known/terraform.json", code: 200)
Expand Down

0 comments on commit 1cc550f

Please sign in to comment.