Add a new step redoing the last migration
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 1m24s
Add copyright notice / copyright_notice (pull_request) Successful in 2m45s
Run unit tests / unit_tests (pull_request) Successful in 5m2s
Run unit tests / reversible_migrations (pull_request) Failing after 3m32s
Build Nginx-based docker image / build-static-assets (pull_request) Has been cancelled
Check usage of free licenses / check-licenses (pull_request) Successful in 1m19s
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 1m24s
Add copyright notice / copyright_notice (pull_request) Successful in 2m45s
Run unit tests / unit_tests (pull_request) Successful in 5m2s
Run unit tests / reversible_migrations (pull_request) Failing after 3m32s
Build Nginx-based docker image / build-static-assets (pull_request) Has been cancelled
Check usage of free licenses / check-licenses (pull_request) Successful in 1m19s
This commit is contained in:
parent
da02f37069
commit
f681f8d2f9
@ -10,7 +10,7 @@ concurrency:
|
||||
jobs:
|
||||
unit_tests:
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
services: &services
|
||||
postgres:
|
||||
image: postgres
|
||||
env:
|
||||
@ -50,3 +50,22 @@ 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
|
||||
- name: Wait until Postgres is ready to accept connections
|
||||
run: |
|
||||
apt-get update && apt-get install -f -y postgresql-client
|
||||
until pg_isready -h postgres -U postgres -d postgres
|
||||
do
|
||||
sleep 1
|
||||
echo "Trying again"
|
||||
done
|
||||
- run: bundle exec rake db:schema:load
|
||||
- run: bundle exec rake db:migrate:redo
|
Loading…
x
Reference in New Issue
Block a user