Skip to content

Commit

Permalink
Merge pull request #22 from jrafanie/test_ruby31_and_30
Browse files Browse the repository at this point in the history
Test with ruby 3.1 and 3.0
  • Loading branch information
Fryguy authored Feb 13, 2024
2 parents 6340896 + a1070ca commit 3158cfb
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
name: CI

on: [push, pull_request]

on:
- push
- pull_request
jobs:
ci:
runs-on: ubuntu-latest
Expand All @@ -12,20 +13,17 @@ jobs:
- '2.6'
- '2.7'
- '3.0'
- '3.1'
services:
postgres:
image: manageiq/postgresql:13
env:
POSTGRESQL_USER: root
POSTGRESQL_PASSWORD: smartvm
POSTGRESQL_DATABASE: vmdb_production
options: >-
--name postgres
--volume /tmp/postgresql-cfg/:/opt/app-root/src/postgresql-cfg/
--health-cmd pg_isready
--health-interval 2s
--health-timeout 5s
--health-retries 5
options: "--name postgres --volume /tmp/postgresql-cfg/:/opt/app-root/src/postgresql-cfg/
--health-cmd pg_isready --health-interval 2s --health-timeout 5s --health-retries
5"
ports:
- 5432:5432
steps:
Expand All @@ -39,16 +37,16 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
ruby-version: "${{ matrix.ruby-version }}"
bundler-cache: true
timeout-minutes: 30
- name: Run tests
run: bundle exec rake
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '2.7' }}
CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}"
- if: "${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '2.7' }}"
name: Report code coverage
continue-on-error: true
uses: paambaati/codeclimate-action@v5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}"

0 comments on commit 3158cfb

Please sign in to comment.