Merge pull request #168 from p-eye/fix_string_to_time_converter #59
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.3.15.0 | |
- 9.4.8.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" | |
- name: download jruby | |
run: "curl -L -o jruby.jar https://repo1.maven.org/maven2/org/jruby/jruby-complete/${{ matrix.jruby_version }}/jruby-complete-${{ matrix.jruby_version }}.jar" | |
# | |
# For avoiding permission denied. install gems into `gems` directory | |
# | |
- name: bundle install | |
run: "env GEM_HOME=gems java -jar jruby.jar -S bundle install" | |
- name: install embulk.jar | |
run: "curl -L -o embulk.jar https://github.com/embulk/embulk/releases/download/v0.11.4/embulk-0.11.4.jar" | |
- name: rake test | |
run: 'env GEM_HOME=gems RUBYOPT="-r ./embulk.jar -r rubygems" java -jar jruby.jar -S bundle exec rake test' |