Skip to content

Commit 32d2680

Browse files
committed
Test ruby 2.7/3.0
1 parent 9822337 commit 32d2680

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1+
---
12
name: CI
2-
33
on:
44
push:
55
pull_request:
66
workflow_dispatch:
77
schedule:
8-
- cron: '0 0 * * *'
9-
8+
- cron: 0 0 * * *
109
jobs:
1110
ci:
1211
runs-on: ubuntu-latest
1312
strategy:
1413
matrix:
1514
ruby-version:
16-
- '2.6'
1715
- '2.7'
16+
- '3.0'
1817
services:
1918
postgres:
2019
image: manageiq/postgresql:10
2120
env:
2221
POSTGRESQL_USER: root
2322
POSTGRESQL_PASSWORD: smartvm
2423
POSTGRESQL_DATABASE: vmdb_test
25-
options: --health-cmd pg_isready --health-interval 2s --health-timeout 5s --health-retries 5
24+
options: "--health-cmd pg_isready --health-interval 2s --health-timeout 5s
25+
--health-retries 5"
2626
ports:
2727
- 5432:5432
2828
env:
2929
PGHOST: localhost
3030
PGPASSWORD: smartvm
31-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
31+
CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}"
3232
steps:
3333
- uses: actions/checkout@v2
3434
- name: Set up system
3535
run: bin/before_install
3636
- name: Set up Ruby
3737
uses: ruby/setup-ruby@v1
3838
with:
39-
ruby-version: ${{ matrix.ruby-version }}
39+
ruby-version: "${{ matrix.ruby-version }}"
4040
bundler-cache: true
4141
timeout-minutes: 30
4242
- name: Prepare tests
4343
run: bin/setup
4444
- name: Run tests
4545
run: bundle exec rake
4646
- name: Report code coverage
47-
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '2.7' }}
47+
if: "${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '2.7' }}"
4848
continue-on-error: true
4949
uses: paambaati/[email protected]

0 commit comments

Comments
 (0)