Setup Rspec

This commit is contained in:
sto
2025-03-26 19:58:11 +01:00
parent 2144c22bd9
commit 12f9f33034
7 changed files with 201 additions and 10 deletions

View File

@@ -69,16 +69,12 @@ jobs:
ruby-version: .ruby-version
bundler-cache: true
- name: Run tests
- name: Setup test database
env:
RAILS_ENV: test
# REDIS_URL: redis://localhost:6379/0
run: bin/rails db:test:prepare test test:system
run: bin/rails db:test:prepare
- name: Keep screenshots from failed system tests
uses: actions/upload-artifact@v4
if: failure()
with:
name: screenshots
path: ${{ github.workspace }}/tmp/screenshots
if-no-files-found: ignore
- name: Run rspec
env:
RAILS_ENV: test
run: bundle exec rspec