Skip to content

Commit

Permalink
keep going
Browse files Browse the repository at this point in the history
  • Loading branch information
croyfish committed Dec 2, 2024
1 parent 1fac3e5 commit 98c76eb
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ jobs:
# # echo "Waiting for MySQL to be ready after restart..."
# # sleep 2
# # done
#
- name: set up test environment
run: |
touch .env
echo 'RAILS_ENV=test' >> .env
echo 'DATABASE_NAME=fedora_ingest_rails_test' >> .env
echo 'DATABASE_USER_NAME=postgres' >> .env
echo 'DATABASE_PASSWORD=mypassword' >> .env
echo 'DATABASE_HOST=postgres' >> .env
- name: Start App
run: |
Expand All @@ -123,13 +132,13 @@ jobs:
echo "MySQL logs:"
docker logs $(docker ps -qf "ancestor=mysql:5.6")
- name: Set up Databases
run: |
psql -U postgres -c 'create database fedora_ingest_rails_test;'
mysql -uroot -e 'CREATE DATABASE ami_filestore_test; CREATE DATABASE image_filestore_test'
mysql -uroot ami_filestore_test < ./db/resources/ami_filestore_schema.sql
mysql -uroot image_filestore_test < ./db/resources/image_filestore_schema.sql
# - name: Set up Databases
# run: |
# psql -U postgres -c 'create database fedora_ingest_rails_test;'
# mysql -uroot -e 'CREATE DATABASE ami_filestore_test; CREATE DATABASE image_filestore_test'
# mysql -uroot ami_filestore_test < ./db/resources/ami_filestore_schema.sql
# mysql -uroot image_filestore_test < ./db/resources/image_filestore_schema.sql
#
- name: Run Tests
run: |
bundle exec rspec
Expand Down

0 comments on commit 98c76eb

Please sign in to comment.