-
Notifications
You must be signed in to change notification settings - Fork 3
82 lines (67 loc) · 2.11 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Test
on: [push, pull_request]
env:
JAVA_OPTS: '-XX:+TieredCompilation -XX:TieredStopAtLevel=1'
jobs:
rake-test:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ar_bogacs
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
env:
AR_ADAPTER: mysql2
AR_USERNAME: root
AR_PASSWORD: root
AR_HOST: 127.0.0.1
AR_VERSION: "~> 4.2"
HIKARI_VERSION: 2.3.12
strategy:
matrix:
java-version: [ 11 ]
ruby-version: [ jruby-9.3.6.0 ]
include:
- java-version: 11
ruby-version: jruby-9.2.20.1
- java-version: 11
ruby-version: jruby-9.2.10.0
- java-version: 17
ruby-version: jruby-9.2.20.1
- java-version: 8
ruby-version: jruby-9.2.9.0
- java-version: 8
ruby-version: jruby-9.1.17.0
env:
AR_VERSION: "~> 4.1.14"
fail-fast: false
steps:
- name: check mysql from host
run: |
sudo apt install -y mysql-client
mysql --host 127.0.0.1 --port 3306 -uroot -proot -e "SHOW DATABASES"
- name: checkout
uses: actions/checkout@v2
- name: set up java ${{ matrix.java-version }}
uses: actions/setup-java@v1.4.3
with:
java-version: ${{ matrix.java-version }}
- name: set up ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: install bundler
run: jruby -S gem install bundler -v "~>2.2.28"
- name: bundle install
run: jruby -S bundle install
- name: download jars
run: jruby -rbundler/setup -S rake tomcat:jndi:download tomcat:jdbc:download tomcat:dbcp:download hikari:download
shell: bash
- name: rake test
run: jruby -rbundler/setup -S rake test
shell: bash