diff --git a/.github/workflows/codegen-ci.yml b/.github/workflows/codegen-ci.yml new file mode 100644 index 000000000000..9dce4cc2ad89 --- /dev/null +++ b/.github/workflows/codegen-ci.yml @@ -0,0 +1,35 @@ +name: codegen-ci + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + name: Java ${{ matrix.java }} + strategy: + matrix: + java: [8, 11] + + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + + - 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: build and test codegen + run: | + cd ./codegen + ./gradlew clean smithy-aws-typescript-codegen:build protocol-test-codegen:build -Plog-tests \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c5515161374c..000000000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: java - -jdk: -- oraclejdk8 -- openjdk8 -- openjdk11 - -sudo: true - -dist: trusty - -install: /bin/true - -script: ./codegen/gradlew clean smithy-aws-typescript-codegen:build protocol-test-codegen:build -Plog-tests