From 737606b92257b6e0c3811a9bd70913668e076cfb Mon Sep 17 00:00:00 2001 From: Risto Lahtela Date: Fri, 15 Nov 2019 09:33:47 +0200 Subject: [PATCH] Create gradle.yml --- .github/workflows/gradle.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 000000000..e1e84a990 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,31 @@ +name: Java CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Gradle + run: | + cd Plan + ./gradlew shadowJar + test: + runs-on: [ubuntu-latest] + + steps: + - name: Checkstyle + run: | + cd Plan + ./gradlew checkstyleMain checkstyleTest + - name: Run tests + run: | + cd Plan + ./gradlew test