File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments