Adds Appraisal and Active Record Tests #1
Workflow file for this run
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: Ext Tests | |
| on: | |
| schedule: [ cron: '0 0 * * *' ] | |
| pull_request: | |
| jobs: | |
| appraise: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 1 | |
| matrix: | |
| ruby: | |
| - '3.2' | |
| - '3.3' | |
| - '3.4' | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - name: Cache Appraisal gems | |
| id: cache-appraisal-gems | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor/bundle | |
| key: ${{ runner.os }}-appraisals-${{ matrix.ruby }}-${{ hashFiles('gemfiles/*.gemfile.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-appraisals-${{ matrix.ruby }}- | |
| - name: Resolve appraisals dependencies | |
| run: | | |
| bundle config path vendor/bundle | |
| bundle exec appraisal install | |
| - name: Run all versioned appraisals | |
| if: ${{ github.event_name != 'schedule' }} | |
| run: bundle exec rake appraise | |
| env: | |
| TEST_PG_URL: ${{ secrets.TEST_PG_URL }} | |
| - name: Run rails_main appraisal | |
| if: ${{ github.event_name == 'schedule' }} | |
| run: bundle exec appraisal rails_main rspec spec/ext/* | |
| env: | |
| TEST_PG_URL: ${{ secrets.TEST_PG_URL }} |