Skip to content

Commit

Permalink
feat(ci): add GitHub Action to test codegen (#1684)
Browse files Browse the repository at this point in the history
* chore: remove .travis.yml

* feat(ci): add GitHub Action to run test codegen

* fix(ci): run gradle from codegen folder

* chore: break run scripts to multiple lines
  • Loading branch information
trivikr committed Nov 13, 2020
1 parent 5a6bdd9 commit 41e9359
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 14 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/codegen-ci.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

0 comments on commit 41e9359

Please sign in to comment.