Commit 98c76eb 1 parent 1fac3e5 commit 98c76eb Copy full SHA for 98c76eb
File tree 1 file changed +16
-7
lines changed
1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,15 @@ jobs:
111
111
# # echo "Waiting for MySQL to be ready after restart..."
112
112
# # sleep 2
113
113
# # done
114
+ #
115
+ - name : set up test environment
116
+ run : |
117
+ touch .env
118
+ echo 'RAILS_ENV=test' >> .env
119
+ echo 'DATABASE_NAME=fedora_ingest_rails_test' >> .env
120
+ echo 'DATABASE_USER_NAME=postgres' >> .env
121
+ echo 'DATABASE_PASSWORD=mypassword' >> .env
122
+ echo 'DATABASE_HOST=postgres' >> .env
114
123
115
124
- name : Start App
116
125
run : |
@@ -123,13 +132,13 @@ jobs:
123
132
echo "MySQL logs:"
124
133
docker logs $(docker ps -qf "ancestor=mysql:5.6")
125
134
126
- - name : Set up Databases
127
- run : |
128
- psql -U postgres -c 'create database fedora_ingest_rails_test;'
129
- mysql -uroot -e 'CREATE DATABASE ami_filestore_test; CREATE DATABASE image_filestore_test'
130
- mysql -uroot ami_filestore_test < ./db/resources/ami_filestore_schema.sql
131
- mysql -uroot image_filestore_test < ./db/resources/image_filestore_schema.sql
132
-
135
+ # - name: Set up Databases
136
+ # run: |
137
+ # psql -U postgres -c 'create database fedora_ingest_rails_test;'
138
+ # mysql -uroot -e 'CREATE DATABASE ami_filestore_test; CREATE DATABASE image_filestore_test'
139
+ # mysql -uroot ami_filestore_test < ./db/resources/ami_filestore_schema.sql
140
+ # mysql -uroot image_filestore_test < ./db/resources/image_filestore_schema.sql
141
+ #
133
142
- name : Run Tests
134
143
run : |
135
144
bundle exec rspec
You can’t perform that action at this time.
0 commit comments