Deprecate old ruby and gql versions (#79) #1411
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [3.1, 3.2, 3.3] | |
gemfile: [ | |
"gemfiles/graphql_2_1_0.gemfile", | |
"gemfiles/graphql_2_2_5.gemfile", | |
"gemfiles/graphql_2_3_11.gemfile", | |
"gemfiles/graphql_master.gemfile", | |
] | |
exclude: | |
- ruby: "3.1" | |
gemfile: gemfiles/graphql_2_3_11.gemfile | |
- ruby: "3.1" | |
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 |