forked from embulk/embulk-output-bigquery
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #30 from trocco-io/merge_origin
Merge origin
- Loading branch information
Showing
12 changed files
with
125 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Check | ||
on: [ pull_request, push ] | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
# push: always run. | ||
# pull_request: run only when the PR is submitted from a forked repository, not within this repository. | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
strategy: | ||
matrix: | ||
jruby_version: | ||
- 9.1.17.0 | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up OpenJDK 8 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 8 | ||
distribution: "temurin" | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 'jruby-${{ matrix.jruby_version }}' | ||
bundler-cache: false | ||
- name: install embulk.jar | ||
run: "curl -L -o embulk.jar https://github.com/embulk/embulk/releases/download/v0.9.25/embulk-0.9.25.jar" | ||
- name: chmod embulk.jar | ||
run: "chmod a+x embulk.jar" | ||
- name: bundle install | ||
run: "./embulk.jar bundle install --path vendor/bundle" | ||
- name: rake test | ||
run: 'bundle exec env RUBYOPT="-r ./embulk.jar -r embulk -r embulk/java/bootstrap" rake test' |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Publish | ||
on: | ||
push: | ||
tags: | ||
- "v0.*" | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
environment: maven-central-and-ruby-gems | ||
strategy: | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.3.0 | ||
# get tag variable using {{ github.ref_name }} | ||
# | ||
# References: | ||
# * https://docs.github.com/en/actions/learn-github-actions/contexts#github-context | ||
# * https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables | ||
- name: extract gem version from tag | ||
id: vars | ||
run: echo version=${{ github.ref_name }} | sed -e 's/v0/0/' >> $GITHUB_OUTPUT | ||
# | ||
# From gem push documents. | ||
# | ||
# The push command will use ~/.gem/credentials to authenticate to a server, | ||
# but you can use the RubyGems environment variable GEM_HOST_API_KEY | ||
# to set the api key to authenticate. | ||
# | ||
# https://guides.rubygems.org/command-reference/#gem-push | ||
# | ||
- name: Publish | ||
run: | | ||
if [ -z "${GEM_HOST_API_KEY}" ]; then exit 0; fi | ||
rake build | ||
gem push pkg/${EMBULK_PLUGIN_NAME}-${{ steps.vars.outputs.version }}.gem | ||
env: | ||
EMBULK_PLUGIN_NAME: embulk-output-bigquery | ||
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ gem 'embulk-parser-jsonl' | |
gem 'pry-nav' | ||
gem 'test-unit' | ||
gem 'test-unit-rr' | ||
gem 'rake', '10.4.2' |
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 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 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 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