VCR use_cassette middleware #178
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: Ruby | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
rails_3_2: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.3 | |
bundler-cache: true | |
- name: Run tests | |
run: bundle exec rake | |
- run: gem uninstall -v '>= 2' -ax bundler || true | |
- run: gem install bundler -v '< 2' | |
- name: Run interaction tests | |
run: ./specs_e2e/rails_3_2/test.sh | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
rails_4_2: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.5 | |
bundler-cache: true | |
- name: Run tests | |
run: bundle exec rake | |
- run: gem uninstall -v '>= 2' -ax bundler || true | |
- run: gem install bundler -v '< 2' | |
- name: Run interaction tests | |
run: ./specs_e2e/rails_4_2/test.sh | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
rails_5_2: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install sqlite3 | |
run: sudo apt-get update && sudo apt-get install -y libsqlite3-dev | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
bundler-cache: true | |
- name: Update RubyGems | |
run: | | |
gem update --system 3.2.3 | |
gem install bundler | |
- name: Run tests | |
run: bundle exec rake | |
- name: Run interaction tests | |
run: ./specs_e2e/rails_5_2/test.sh | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} |