Merge pull request #30 from trocco-io/merge_origin #29
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
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' |