-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from trocco-io/feature/embulk-v0.1x
Implementation for embulk v0.1x
- Loading branch information
Showing
21 changed files
with
695 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,57 @@ | ||
name: main | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "master" | ||
- 'master' | ||
tags: | ||
- "*" | ||
- '*' | ||
pull_request: | ||
branches: | ||
- "master" | ||
- 'master' | ||
types: [opened, synchronize] | ||
pull_request_target: | ||
branches: | ||
- 'master' | ||
types: [labeled] | ||
|
||
jobs: | ||
main: | ||
test: | ||
name: test | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
if: > | ||
${{ | ||
github.event_name == 'pull_request' || | ||
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe to test')) || | ||
startsWith(github.ref, 'refs/tags/') | ||
}} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: lint | ||
# Run ./gradlew spotlessApply when failing on this step. | ||
run: ./gradlew spotlessCheck | ||
- run: ./gradlew test | ||
- name: Show Current Version | ||
run: ./gradlew printVersion | ||
- name: Build Gem & Put it into './build/gems/' Directory | ||
run: ./gradlew gem | ||
- name: Set up JRuby | ||
- name: Test | ||
run: ./gradlew test | ||
build: | ||
name: Build + Publish | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
needs: [ test ] | ||
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.ref, 'refs/tags/') }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby 2.7 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: jruby | ||
ruby-version: 2.7 | ||
- name: push gem | ||
uses: trocco-io/push-gem-to-gpr-action@v1 | ||
with: | ||
language: java | ||
gem-path: "./pkg/*.gem" | ||
gem-path: "./build/gems/*.gem" | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ build/ | |
/.metadata/ | ||
.classpath | ||
.project | ||
example.yml | ||
example.yml | ||
example/test.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.