Skip to content

Commit

Permalink
Add GitHub Actions for SDK and codegen CI testing
Browse files Browse the repository at this point in the history
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
jasdel committed May 15, 2021
1 parent d05dd9b commit b0b4b6d
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/codegen.yml
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

62 changes: 62 additions & 0 deletions .github/workflows/go.yml
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

0 comments on commit b0b4b6d

Please sign in to comment.