From 93ce3831f47d014f2ed87c4634845438dd5e5f52 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Sat, 20 Mar 2021 14:42:38 +0100 Subject: [PATCH] init github action --- .github/workflows/gradle.yml | 23 +++++++++++++++++++++++ build.gradle.kts | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..caae039 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: [ action, master ] + pull_request: + branches: [ action, master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - uses: eskatos/gradle-command-action@v1 + with: + gradle-version: 6.8 + arguments: test diff --git a/build.gradle.kts b/build.gradle.kts index 4976e0d..6907ff4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -30,11 +30,11 @@ tasks.withType { val compileKotlin: KotlinCompile by tasks compileKotlin.kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "11" } val compileTestKotlin: KotlinCompile by tasks compileTestKotlin.kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "11" } tasks.test {