Skip to content

Commit

Permalink
Merge pull request #46 from civitaspo/use-github-actions-instead-of-t…
Browse files Browse the repository at this point in the history
…ravis

Use GitHub actions instead of travis
  • Loading branch information
civitaspo authored Apr 23, 2020
2 parents dc4a6bb + fec59c6 commit b651b03
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 19 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: civitaspo
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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}}
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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}}
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
17 changes: 11 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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 {
Expand Down

0 comments on commit b651b03

Please sign in to comment.