Support all ransack predicates #154
Workflow file for this run
This file contains 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: Specs Rails6 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: ['3.0'] | |
gemfile: ['rails60_administrate', 'rails61_administrate'] | |
env: | |
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Assets precompile | |
env: | |
RAILS_ENV: test | |
run: cd spec/dummy && bundle exec rails assets:precompile | |
- name: Run tests | |
run: bundle exec rspec --profile | |
- name: On failure, archive screenshots as artifacts | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: test-failed-screenshots | |
path: spec/dummy/tmp/screenshots |