Skip to content

RSpec

RSpec #1296

Workflow file for this run

name: RSpec
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: "0 10 * * *"
jobs:
rspec:
runs-on: ubuntu-latest
env:
CI: true
strategy:
fail-fast: false
matrix:
ruby: [2.7, '3.0', 3.1, 3.2, 3.3]
gemfile: [
"gemfiles/graphql_1_12_0.gemfile",
"gemfiles/graphql_1_12_4.gemfile",
"gemfiles/graphql_1_13_7.gemfile",
"gemfiles/graphql_1_13_16.gemfile",
"gemfiles/graphql_2_1_0.gemfile",
"gemfiles/graphql_2_2_5.gemfile",
"gemfiles/graphql_master.gemfile"
]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: /home/runner/bundle
key: bundle-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }}
restore-keys: |
bundle-${{ matrix.ruby }}-${{ matrix.gemfile }}-
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install system deps
run: |
sudo apt-get update
sudo apt-get install libsqlite3-dev
- name: Bundle install
run: |
bundle config path /home/runner/bundle
bundle config --global gemfile ${{ matrix.gemfile }}
bundle install
bundle update
- name: Run RSpec
run: |
bundle exec rake ci_specs