From a9f42f6c40ccd989d5f64e3ed91206717c397436 Mon Sep 17 00:00:00 2001 From: Yasuyuki Takeo Date: Wed, 6 Oct 2021 22:10:18 +0900 Subject: [PATCH] Add groovy and fix github action --- .github/workflows/ci.yml | 15 +++++++++------ build.gradle | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c6cbba..18ac6a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,16 +5,20 @@ jobs: strategy: matrix: os: [macos-latest, windows-latest] - java: [1.8] + java: [8] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v1 - - uses: actions/setup-java@v1 + - uses: actions/checkout@v2 + - uses: actions/setup-java@v2 with: java-version: ${{ matrix.java }} - - uses: eskatos/gradle-command-action@v1 + distribution: 'adopt' + cache: gradle + - name: run test + uses: gradle/gradle-build-action@v2 with: - arguments: check + gradle-version: 7.2 + arguments: build - name: Generate Coveralls Test Report run: ./gradlew jacocoTestReport coveralls env: @@ -22,5 +26,4 @@ jobs: CI_NAME: Github Actions CI_BRANCH: ${{github.ref}} CI_PULL_REQUEST: ${{github.event.pull_request.html_url}} - \ No newline at end of file diff --git a/build.gradle b/build.gradle index 22b35f6..cc1fa02 100644 --- a/build.gradle +++ b/build.gradle @@ -63,6 +63,7 @@ dependencies { implementation 'com.fasterxml.jackson.core:jackson-annotations:2.12.+' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-joda:2.12.+' implementation 'joda-time:joda-time:2.10.+' + implementation 'org.codehaus.groovy:groovy-all:3.0.9' implementation group: 'org.antlr', name: 'antlr4', version: '4.8-1' implementation group: 'org.antlr', name: 'antlr4-runtime', version: '4.8-1'