|
| 1 | +# This workflow uses actions that are not certified by GitHub. They are |
| 2 | +# provided by a third-party and are governed by separate terms of service, |
| 3 | +# privacy policy, and support documentation. |
| 4 | +# |
| 5 | +# This workflow will install a prebuilt Ruby version, install dependencies, and |
| 6 | +# run tests and linters. |
| 7 | +name: "active_remote-cached" |
| 8 | +on: |
| 9 | + push: |
| 10 | + branches: [ master ] |
| 11 | + pull_request: |
| 12 | + branches: [ master ] |
| 13 | +jobs: |
| 14 | + test: |
| 15 | + runs-on: ubuntu-latest |
| 16 | + strategy: |
| 17 | + matrix: |
| 18 | + ruby-version: [ '3.2', '3.1', '3.0', '2.7', 'jruby-9.4' ] |
| 19 | + gemfile: [ 'rails60', 'rails61', 'rails70' ] |
| 20 | + env: |
| 21 | + RAILS_ENV: test |
| 22 | + steps: |
| 23 | + - name: Checkout code |
| 24 | + uses: actions/checkout@v3 |
| 25 | + # Add or replace dependency steps here |
| 26 | + - name: Install Ruby and gems |
| 27 | + uses: ruby/setup-ruby@v1 |
| 28 | + with: |
| 29 | + bundler-cache: true |
| 30 | + ruby-version: ${{ matrix.ruby-version }} |
| 31 | + env: |
| 32 | + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile |
| 33 | + # Add or replace test runners here |
| 34 | + - name: Run tests |
| 35 | + run: bundle exec rake test |
| 36 | + env: |
| 37 | + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile |
| 38 | + old_tests: |
| 39 | + runs-on: ubuntu-latest |
| 40 | + strategy: |
| 41 | + matrix: |
| 42 | + ruby-version: [ '2.6', 'jruby-9.3' ] |
| 43 | + gemfile: [ 'rails60', 'rails61' ] |
| 44 | + env: |
| 45 | + RAILS_ENV: test |
| 46 | + steps: |
| 47 | + - name: Checkout code |
| 48 | + uses: actions/checkout@v3 |
| 49 | + # Add or replace dependency steps here |
| 50 | + - name: Install Ruby and gems |
| 51 | + uses: ruby/setup-ruby@v1 |
| 52 | + with: |
| 53 | + bundler-cache: true |
| 54 | + ruby-version: ${{ matrix.ruby-version }} |
| 55 | + env: |
| 56 | + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile |
| 57 | + # Add or replace test runners here |
| 58 | + - name: Run tests |
| 59 | + run: bundle exec rake test |
| 60 | + env: |
| 61 | + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile |
0 commit comments