From 798cf564b4f2a28d77ec700173f25ffff8b26a29 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Thu, 23 Jan 2025 22:36:01 +0100 Subject: [PATCH] Redo last 5 migrations before running specs --- .gitea/workflows/tests.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index cdf1022..4772fd8 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -35,6 +35,8 @@ jobs: done - run: | bundle exec rake db:schema:load + bundle exec rake db:migrate:redo STEP=5 + - run: | bundle exec rspec env: RAILS_ENV: test @@ -51,25 +53,12 @@ jobs: - uses: ruby/setup-ruby@v1.207.0 - run: bundle install - run: bundle exec rubocop --force-exclusion --parallel - reversible_migrations: - runs-on: ubuntu-latest - services: *services - steps: - - uses: actions/checkout@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - - uses: ruby/setup-ruby@v1.207.0 - - run: bundle install - - *postgres_wait - - run: bundle exec rake db:schema:load - - run: bundle exec rake db:migrate:redo build-static-assets: runs-on: ubuntu-latest timeout-minutes: 30 needs: - unit_tests - rubocop - - reversible_migrations steps: - uses: actions/checkout@v4 with: