diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..0b8e4cf --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: civitaspo diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..4b263d1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,36 @@ +name: Release CI + +on: + push: + tags: + - '*' + +jobs: + release: + + 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: Run tests + run: ./gradlew test + - name: Coveralls Test Report + run: ./gradlew jacocoTestReport coveralls + env: + COVERALLS_REPO_TOKEN: ${{secrets.COVERALLS_REPO_TOKEN}} + CI_NAME: Github Actions + CI_BRANCH: ${{github.ref}} + CI_PULL_REQUEST: ${{github.event.pull_request.html_url}} + - name: Release the new gem + run: | + mkdir -p $HOME/.gem + touch $HOME/.gem/credentials + chmod 0600 $HOME/.gem/credentials + printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials + ./gradlew gemPush + env: + RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d58e96a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Test CI + +on: + - push + +jobs: + test: + + 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: Run tests + run: ./gradlew test + - name: Coveralls Test Report + run: ./gradlew jacocoTestReport coveralls + env: + COVERALLS_REPO_TOKEN: ${{secrets.COVERALLS_REPO_TOKEN}} + CI_NAME: Github Actions + CI_BRANCH: ${{github.ref}} + CI_PULL_REQUEST: ${{github.event.pull_request.html_url}} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 22836c8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -dist: precise -language: java -jdk: - - openjdk8 -script: - - ./gradlew test -after_success: - - ./gradlew jacocoTestReport coveralls -addons: - hosts: - - me - hostname: me diff --git a/README.md b/README.md index 91dbb50..529febe 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Expand Json filter plugin for Embulk -[![Build Status](https://travis-ci.org/civitaspo/embulk-filter-expand_json.svg)](https://travis-ci.org/civitaspo/embulk-filter-expand_json) +![Release CI Status Badge](https://github.com/civitaspo/embulk-filter-expand_json/workflows/Release%20CI/badge.svg) ![Test CI Status Badge](https://github.com/civitaspo/embulk-filter-expand_json/workflows/Test%20CI/badge.svg) [![Coverage Status](https://coveralls.io/repos/civitaspo/embulk-filter-expand_json/badge.svg?branch=master&service=github)](https://coveralls.io/github/civitaspo/embulk-filter-expand_json?branch=master) expand columns having json into multiple columns diff --git a/build.gradle b/build.gradle index ba01179..b50f1c1 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id "com.github.kt3k.coveralls" version "2.4.0" + id "com.github.kt3k.coveralls" version "2.10.1" id "jacoco" id "java" id "checkstyle" @@ -23,14 +23,19 @@ dependencies { compile("com.jayway.jsonpath:json-path:2.4.0") { exclude group: "org.slf4j", module: "slf4j-api" } - testCompile "junit:junit:4.+" - testCompile "org.embulk:embulk-core:0.9.23:tests" - + testImplementation "junit:junit:4.+" + testImplementation "org.embulk:embulk-core:0.9.23:tests" + testImplementation "org.embulk:embulk-core:0.9.23" // TODO: Remove them. // They are now required because the dependency libraries of them are behind sub ClassLoaders. // Including them in "testCompile" is a tentative workaround. - testCompile "org.embulk:embulk-deps-buffer:0.9.23" - testCompile "org.embulk:embulk-deps-config:0.9.23" + testImplementation "org.embulk:embulk-deps-buffer:0.9.23" + testImplementation "org.embulk:embulk-deps-config:0.9.23" +} + +test { + jvmArgs '-Xms4g', '-Xmx4g', '-XX:MaxMetaspaceSize=1g' + maxHeapSize = "4g" } embulkPlugin {