Merge pull request #31 from dblock/more-versions #59
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: test-activerecord | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| entry: | |
| - { ruby: '3.4', postgresql: '15', activerecord: '~> 6.1.0', grape: '~> 1.8.0' } | |
| - { ruby: '3.4', postgresql: '16', activerecord: '~> 7.2.0', grape: '~> 2.4.0' } | |
| - { ruby: '3.4', postgresql: '17', activerecord: '~> 8.0.3', grape: '~> 2.4.0' } | |
| name: test (ruby=${{ matrix.entry.ruby }}, postgresql=${{ matrix.entry.postgresql }}, activerecord=${{ matrix.entry.activerecord }}, grape=${{ matrix.entry.grape }}) | |
| env: | |
| ACTIVERECORD_VERSION: ${{ matrix.entry.activerecord }} | |
| GRAPE_VERSION: ${{ matrix.entry.grape }} | |
| steps: | |
| - uses: harmon758/postgresql-action@v1 | |
| with: | |
| postgresql version: ${{ matrix.entry.postgresql }} | |
| postgresql db: slack_ruby_bot_server_test | |
| postgresql user: test | |
| postgresql password: password | |
| - uses: actions/checkout@v5 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.entry.ruby }} | |
| bundler-cache: true | |
| - name: Run ActiveRecord Tests | |
| env: | |
| SPEC_OPTS: --tag activerecord | |
| run: bundle exec rake | |
| - name: Run Tests | |
| run: bundle exec rake |