Skip to content

Commit 26423cb

Browse files
committed
Add CI to build against api-models-aws
Adds a job to the CI workflow that builds https://github.com/aws/api-models-aws using new Smithy changes. api-models-aws is a pretty large test suite, so this should give us much more confidence that we aren't making breaking changes to a validator or something.
1 parent 776f57c commit 26423cb

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,42 @@ jobs:
6363
with:
6464
name: built-docs
6565
path: docs/build/html
66+
67+
build-api-models-aws:
68+
runs-on: ubuntu-latest
69+
name: Build AWS API Models
70+
steps:
71+
- name: Checkout Smithy
72+
uses: actions/checkout@v4
73+
with:
74+
path: 'smithy'
75+
76+
- name: Checkout api-models-aws
77+
uses: actions/checkout@v4
78+
with:
79+
repository: aws/api-models-aws
80+
path: api-models-aws
81+
82+
- uses: gradle/wrapper-validate-action@v3
83+
84+
- name: Setup JDK 17
85+
uses: actions/setup-java@v4
86+
with:
87+
java-version: 17
88+
distribution: 'corretto'
89+
90+
- name: Publish Smithy to Maven local
91+
run: cd smithy && ./gradlew clean build pTML -PnoFormat
92+
93+
- name: Update Smithy version
94+
run: |
95+
SMITHY_VERSION=$(cat ./smithy/VERSION) \
96+
&& sed -i "s/smithy = \"[^\"]*\"/smithy = \"$SMITHY_VERSION\"/g" ./api-models-aws/gradle/libs.versions.toml
97+
98+
- name: Check that the Smithy version was updated properly
99+
run: |
100+
SMITHY_VERSION=$(cat ./smithy/VERSION) \
101+
&& grep "smithy = \"$SMITHY_VERSION\"" ./api-models-aws/gradle/libs.versions.toml
102+
103+
- name: Build AWS API Models
104+
run: cd api-models-aws && ./gradlew clean build

0 commit comments

Comments
 (0)