Merge pull request #606 from Shopify/juni/resolve-circular-requires #1570
This file contains hidden or 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, pull_request] | |
| jobs: | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| - name: Run typecheck | |
| run: bundle exec srb tc | |
| test: | |
| strategy: | |
| matrix: | |
| os: [macos-latest, ubuntu-latest] | |
| ruby-version: ['3.1', '3.2', '3.3', '3.4'] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| BUNDLE_WITHOUT: typecheck | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| - name: Run tests | |
| run: bundle exec rake |