Skip to content

Merge pull request #56 from SalesLoft/pin-imap-for-tests #40

Merge pull request #56 from SalesLoft/pin-imap-for-tests

Merge pull request #56 from SalesLoft/pin-imap-for-tests #40

Workflow file for this run

name: TCR Spec Suite
on:
push:
branches: [master]
pull_request:
jobs:
test:
name: "Test: Ruby ${{ matrix.ruby }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
# runs 'bundle install' and caches installed gems automatically
bundler-cache: true
- name: Ruby Version
run: ruby --version
- name: Run Tests
run: bundle exec rspec
testall:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Test (matrix)
needs: [test]
steps:
- name: Check status of all test runs
if: ${{ needs.test.result != 'success' }}
run: exit 1