This repository was archived by the owner on May 18, 2025. It is now read-only.
Merge pull request #14 from blocknotes/chore/update-activeadmin-depen… #3
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: Specs Rails 8.0 | |
on: | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: ['3.2', '3.4'] | |
env: | |
RAILS_VERSION: 8.0 | |
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: Database setup | |
run: bin/rails db:create db:migrate db:test:prepare | |
- name: Run tests | |
run: bundle exec rspec --profile | |
- name: On failure, archive screenshots as artifacts | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: test-failed-screenshots | |
path: spec/dummy/tmp/screenshots |