-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(codegen): generate and run SSDK protocol tests during CI (#2558)
This sets up a server-only mode for generate-clients, and a set of yarn targets that generate and run server protocol tests. The CodeBuild CI for clients uses Node 10, while SSDKs require Node 14, so this sets up an additional GitHub action for running the SSDK protocol tests and excludes SSDK protocol tests from the client targets. When the client is updated to support 14 as a minimum version, this distinction can be removed.
- Loading branch information
1 parent
dff5cd4
commit c2e88a4
Showing
7 changed files
with
142 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: server-protocol-tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '11' | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
cache: 'yarn' | ||
|
||
- name: build and publish smithy-typescript | ||
run: | | ||
git clone --depth 1 https://github.com/awslabs/smithy-typescript.git | ||
cd smithy-typescript | ||
./gradlew clean build publishToMavenLocal | ||
cd .. | ||
- name: install dependencies | ||
run: | | ||
yarn install | ||
- name: generate protocol tests | ||
run: | | ||
yarn generate-clients --server-artifacts | ||
# there are new dependencies as a result of generating server protocol tests | ||
- name: install dependencies again | ||
run: | | ||
yarn install | ||
- name: run protocol tests | ||
run: | | ||
yarn test:server-protocols | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters