Skip to content

Commit

Permalink
another try
Browse files Browse the repository at this point in the history
  • Loading branch information
croyfish committed Nov 8, 2024
1 parent 6768f8a commit 70bc46e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ jobs:
AMI_FILESTORE_DATABASE_NAME: ami_filestore_test
IMAGE_FILESTORE_DATABASE_USER: root
AMI_FILESTORE_DATABASE_USER: root
DATABASE_USERNAME: root
DATABASE_PASSWORD: "" # Empty password
DATABASE_HOST: 127.0.0.1
# DATABASE_USERNAME: root
#DATABASE_PASSWORD: "" # Empty password
#DATABASE_HOST: 127.0.0.1

steps:
- name: Check out code
Expand All @@ -76,10 +76,10 @@ jobs:
- name: Set up Databases
run: |
psql -h localhost -U postgres -c 'create database fedora_ingest_rails_test;'
mysql -h 127.0.0.1 -uroot -e 'CREATE DATABASE ami_filestore_test; CREATE DATABASE image_filestore_test'
mysql -h 127.0.0.1 -uroot ami_filestore_test < ./db/resources/ami_filestore_schema.sql
mysql -h 127.0.0.1 -uroot image_filestore_test < ./db/resources/image_filestore_schema.sql
psql -h postgres -U postgres -c 'create database fedora_ingest_rails_test;'
mysql -h mysql -uroot -e 'CREATE DATABASE ami_filestore_test; CREATE DATABASE image_filestore_test'
mysql -h mysql -uroot ami_filestore_test < ./db/resources/ami_filestore_schema.sql
mysql -h mysql -uroot image_filestore_test < ./db/resources/image_filestore_schema.sql
- name: Verify MySQL Listening Address
run: |
Expand Down
2 changes: 1 addition & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ami_filestore:
# The ENV VARs are for Dockerized localhost, the default Procs are for Travis
test:
<<: *default
host: <%= ENV.fetch('INGESTOR_TEST_DATABASE_HOST') { 'mysql' } %>
host: <%= ENV.fetch('INGESTOR_TEST_DATABASE_HOST') { 'postgres' } %>
database: fedora_ingest_rails_test
username: postgres
password: mypassword
Expand Down

0 comments on commit 70bc46e

Please sign in to comment.