db before test
CI / scan_ruby (push) Successful in 16s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 19s
CI / test (push) Failing after 12s
CI / system-test (push) Failing after 13s

This commit is contained in:
2026-01-26 22:54:23 +01:00
parent 654ec39f36
commit be0ddcc89e
+12 -2
View File
@@ -83,12 +83,17 @@ jobs:
with: with:
bundler-cache: true bundler-cache: true
- name: Set up database
env:
RAILS_ENV: test
run: bin/rails db:create db:structure:load
- name: Run tests - name: Run tests
env: env:
RAILS_ENV: test RAILS_ENV: test
# RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} # RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
# REDIS_URL: redis://localhost:6379/0 # REDIS_URL: redis://localhost:6379/0
run: bin/rails db:test:prepare test run: bin/rails test
system-test: system-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -108,12 +113,17 @@ jobs:
with: with:
bundler-cache: true bundler-cache: true
- name: Set up database
env:
RAILS_ENV: test
run: bin/rails db:create db:structure:load
- name: Run System Tests - name: Run System Tests
env: env:
RAILS_ENV: test RAILS_ENV: test
# RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} # RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
# REDIS_URL: redis://localhost:6379/0 # REDIS_URL: redis://localhost:6379/0
run: bin/rails db:test:prepare test:system run: bin/rails test:system
- name: Keep screenshots from failed system tests - name: Keep screenshots from failed system tests
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4