File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : linux
2+ on :
3+ - push
4+ - pull_request
5+
6+ jobs :
7+ build :
8+ runs-on : ${{ matrix.os }}
9+ strategy :
10+ fail-fast : false
11+ matrix :
12+ ruby : [ '2.4', '2.5', '2.6', '2.7' ]
13+ os :
14+ - ubuntu-latest
15+ services :
16+ postgres :
17+ image : postgres:13
18+ ports :
19+ - 5432:5432
20+ env :
21+ POSTGRES_USER : postgres
22+ POSTGRES_PASSWORD : password
23+ POSTGRES_DB : test
24+ options : >-
25+ --health-cmd pg_isready
26+ --health-interval 10s
27+ --health-timeout 5s
28+ --health-retries 5
29+ name : Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
30+ steps :
31+ - uses : actions/checkout@v2
32+ - uses : ruby/setup-ruby@v1
33+ with :
34+ ruby-version : ${{ matrix.ruby }}
35+ - name : prepare database
36+ env :
37+ PGPASSWORD : password
38+ run : |
39+ psql -h localhost -p 5432 -U postgres -c "CREATE ROLE fluentd WITH LOGIN ENCRYPTED PASSWORD 'fluentd';"
40+ psql -h localhost -p 5432 -U postgres -c "CREATE DATABASE fluentd_test OWNER fluentd;"
41+ - name : unit testing
42+ run : |
43+ gem install bundler rake
44+ bundle install --jobs 4 --retry 3
45+ bundle exec rake test
You can’t perform that action at this time.
0 commit comments