Skip to content

RSpec

RSpec #1411

Workflow file for this run

name: RSpec
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * *'
jobs:
spec:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image_version: ['latest', 'edge']
ruby_version: ['2.7', '3.0', '3.1', '3.2', '3.3']
services:
redis:
image: redislabs/redistimeseries:${{ matrix.image_version }}
ports:
- 6379:6379/tcp
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
GIT_COMMIT_SHA: ${{ github.sha }}
GIT_BRANCH: ${{ github.head_ref }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
- name: Set up CodeClimate
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- name: Install dependencies
run: |
bundle install
bundle exec appraisal install
- name: Run specs
run: bundle exec appraisal rake spec
- name: Upload coverage report
run: ./cc-test-reporter after-build -t simplecov coverage/.resultset.json
- uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.ruby_version }}-${{ matrix.image_version }}
path: coverage/