-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions for SDK and codegen CI testing
Adds GitHub Actions for Go 1.15, 1.16 SDK unit testing and Java codegen. Go tip is not included yet, relying on to rely on Travis CI for these until added to GitHub Actions.
- Loading branch information
Showing
2 changed files
with
108 additions
and
0 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,46 @@ | ||
name: Codegen Tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
codegen-test: | ||
name: SDK Codegen Test | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
java-version: ['11', '8'] | ||
go-version: [1.16] | ||
env: | ||
JAVA_TOOL_OPTIONS: "-Xmx2g" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java-version }} | ||
|
||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
repository: aws/smithy-go | ||
path: tmp-smithy-go | ||
|
||
- name: Build and publish smithy-go | ||
working-directory: tmp-smithy-go | ||
run: make smithy-publish-local | ||
|
||
- name: Cleanup smithy-go | ||
run: rm -rf tmp-smithy-go | ||
|
||
- name: SDK Codegen | ||
run: make smithy-generate | ||
|
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,62 @@ | ||
name: Go Tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
env: | ||
EACHMODULE_CONCURRENCY: 4 | ||
|
||
jobs: | ||
unix-tests: | ||
name: Test SDK | ||
runs-on: ${{ matrix.os }} | ||
#continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
go-version: [1.16, 1.15] | ||
#experimental: [false] | ||
#include: | ||
# - go-version: tip | ||
# os: [ubuntu-latest, macos-latest] | ||
# experimental: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Test | ||
run: make ci-test-no-generate | ||
|
||
windows-tests: | ||
name: Test SDK | ||
runs-on: ${{ matrix.os }} | ||
#continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest] | ||
go-version: [1.16, 1.15] | ||
#experimental: [false] | ||
#include: | ||
# - go-version: tip | ||
# os: [windows-latest] | ||
# experimental: true | ||
env: | ||
EACHMODULE_SKIP: "internal\\repotools\\changes" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Test | ||
run: make vet build unit-test | ||
|