Skip to content

Commit

Permalink
Merge pull request #61 from treasure-data/add_test_actions
Browse files Browse the repository at this point in the history
Add test github action
  • Loading branch information
minidragon88 committed May 19, 2023
2 parents 630f51e + 063049b commit 9e97677
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 35 deletions.
1 change: 0 additions & 1 deletion .coveralls.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and test

on: push

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: "zulu"

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with testing
run: ./gradlew check --console rich --info

- uses: actions/upload-artifact@v3
if: always()
with:
name: tests
path: ./build/reports/tests/test

- name: JaCoCo test report
if: success()
run: ./gradlew jacocoTestReport

- uses: actions/upload-artifact@v3
if: success()
with:
name: jacoco
path: ./build/reports/coverage
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ embulkPlugin {
type = "mailchimp"
}

def embulkVersion = '0.10.28'
def embulkVersion = '0.10.32'

dependencies {
compileOnly "org.embulk:embulk-api:$embulkVersion"
Expand Down Expand Up @@ -52,12 +52,12 @@ dependencies {
compile 'com.google.guava:guava:18.0'
compile "com.google.code.findbugs:annotations:3.0.1"

testCompile "junit:junit:4.+"
testCompile "org.embulk:embulk-core:$embulkVersion:tests"
testCompile "junit:junit:4.10"
testCompile "org.embulk:embulk-junit4:$embulkVersion"
testCompile "org.embulk:embulk-standards:$embulkVersion"
testCompile "org.embulk:embulk-core:$embulkVersion"
testCompile "org.embulk:embulk-core:$embulkVersion:tests"
testCompile "org.embulk:embulk-deps:$embulkVersion"
testCompile "org.mockito:mockito-core:2.+"
testCompile "org.mockito:mockito-core:2.28.2"
}

test {
Expand Down
11 changes: 0 additions & 11 deletions circle.yml

This file was deleted.

3 changes: 0 additions & 3 deletions lib/embulk/output/mailchimp.rb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,16 @@
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.common.base.Splitter;
import com.google.common.collect.Lists;
import com.google.common.collect.Multimap;
import com.google.common.collect.Multimaps;
import org.embulk.output.mailchimp.model.AddressMergeFieldAttribute;
import org.embulk.spi.Column;
import org.embulk.spi.Schema;

import javax.annotation.Nullable;

import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.TreeSet;
import java.util.function.Function;

import static java.lang.String.CASE_INSENSITIVE_ORDER;
import static java.util.Objects.requireNonNull;
Expand Down

0 comments on commit 9e97677

Please sign in to comment.