Skip to content

Commit ac94f9a

Browse files
committed
Add GitHub Actions
1 parent 149d7ed commit ac94f9a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/check.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Check
2+
on: [ pull_request, push ]
3+
jobs:
4+
check:
5+
runs-on: ubuntu-latest
6+
# push: always run.
7+
# pull_request: run only when the PR is submitted from a forked repository, not within this repository.
8+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
9+
strategy:
10+
fail-fast: false
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up OpenJDK 8
14+
uses: actions/setup-java@v3
15+
with:
16+
java-version: 8
17+
distribution: "temurin"
18+
- uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: 'jruby-9.1.17.0' # 9.1.15.0 doesn't available in setup-ruby@v1
21+
bundler-cache: true
22+
- name: show ruby version
23+
run: ruby -v
24+
# Gem::LoadError: You have already activated rake 10.4.2,
25+
# but your Gemfile requires rake 13.0.6.
26+
- name: gem install rake -v 13.0.6
27+
run: gem install rake -v 13.0.6
28+
- name: bundle install
29+
run: bundle install
30+
- name: install embulk
31+
run: "curl -L -o embulk.jar https://github.com/embulk/embulk/releases/download/v0.8.39/embulk-0.8.39.jar"
32+
- name: rake test
33+
run: bundle exec env RUBYOPT="-r ./embulk.jar" rake test

0 commit comments

Comments
 (0)