Skip to content

Merge pull request #651 from Shopify/dependabot/github_actions/ruby/s… #3441

Merge pull request #651 from Shopify/dependabot/github_actions/ruby/s…

Merge pull request #651 from Shopify/dependabot/github_actions/ruby/s… #3441

Workflow file for this run

---
name: CI
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
gemfile:
- Gemfile
- gemfiles/Gemfile-rails-main
ruby: ["3.3", "3.4"]
include:
- gemfile: "gemfiles/Gemfile-rails-main"
experimental: true
runs-on: ${{ matrix.os }}
timeout-minutes: 25
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
continue-on-error: ${{ !!matrix.experimental }}
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }} with ${{matrix.gemfile}}
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Remove Gemfile.lock
if: (matrix.gemfile == 'Gemfile') && (matrix.ruby == 'head')
run: "rm ${{ matrix.gemfile }}.lock"
- name: Set up Ruby
uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0
with:
bundler: latest
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
cache-version: 8
- name: Run tests
run: |
bundle exec rails db:setup
bundle exec rake
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Ruby
uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0
with:
bundler: latest
bundler-cache: true
cache-version: 8
- name: Typecheck
run: bundle exec srb tc
- name: Lint Ruby files
run: bin/rubocop