name: Ruby CI on: push: branches: [ development ] pull_request: branches: [ development ] jobs: test: runs-on: ubuntu-latest strategy: matrix: ruby-version: ['2.6', '2.7.5', '3.0', '3.3'] steps: - uses: actions/checkout@v3 - name: Set up Ruby ${{ matrix.ruby-version }} uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} - name: Install dependencies run: | if [[ "${{ matrix.ruby-version }}" < "3.0" ]]; then gem install bundler -v '~> 2.4.22' else gem install bundler fi bundle install - name: Run tests run: bundle exec rspec