@@ -56,26 +56,22 @@ jobs:
56
56
sudo service postgresql restart && sleep 3
57
57
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
58
58
sudo service postgresql restart && sleep 3
59
- echo "PG_DATABASE_URL=postgres://postgres:postgres@localhost/" >> $GITHUB_ENV
60
- echo "PG_EXAMPLE_DATABASE_URL=postgres://postgres:postgres@localhost/diesel_example" >> $GITHUB_ENV
59
+ echo "DATABASE_URL=postgres://postgres:postgres@localhost/" >> $GITHUB_ENV
61
60
62
61
- name : Install mysql (Linux)
63
62
if : runner.os == 'Linux' && matrix.backend == 'mysql'
64
63
run : |
65
64
sudo systemctl start mysql.service
66
65
mysql -e "create database diesel_test; create database diesel_unit_test; grant all on \`diesel_%\`.* to 'root'@'localhost';" -uroot -proot
67
- echo "MYSQL_DATABASE_URL=mysql://root:root@localhost/diesel_test" >> $GITHUB_ENV
68
- echo "MYSQL_EXAMPLE_DATABASE_URL=mysql://root:root@localhost/diesel_example" >> $GITHUB_ENV
69
- echo "MYSQL_UNIT_TEST_DATABASE_URL=mysql://root:root@localhost/diesel_unit_test" >> $GITHUB_ENV
66
+ echo "DATABASE_URL=mysql://root:root@localhost/diesel_test" >> $GITHUB_ENV
70
67
71
68
- name : Install postgres (MacOS)
72
69
if : runner.os == 'macOS' && matrix.backend == 'postgres'
73
70
run : |
74
71
/usr/local/opt/postgres/bin/pg_ctl -D /usr/local/var/postgres start
75
72
sleep 3
76
73
/usr/local/opt/postgres/bin/createuser -s postgres
77
- echo "PG_DATABASE_URL=postgres://postgres@localhost/" >> $GITHUB_ENV
78
- echo "PG_EXAMPLE_DATABASE_URL=postgres://postgres@localhost/diesel_example" >> $GITHUB_ENV
74
+ echo "DATABASE_URL=postgres://postgres@localhost/" >> $GITHUB_ENV
79
75
80
76
- name : Install mysql (MacOS)
81
77
if : runner.os == 'macOS' && matrix.backend == 'mysql'
86
82
/usr/local/opt/[email protected] /bin/mysql.server start
87
83
sleep 3
88
84
/usr/local/opt/[email protected] /bin/mysql -e "create database diesel_test; create database diesel_unit_test; grant all on \`diesel_%\`.* to 'runner'@'localhost';" -urunner
89
- echo "MYSQL_DATABASE_URL=mysql://runner@localhost/diesel_test" >> $GITHUB_ENV
90
- echo "MYSQL_EXAMPLE_DATABASE_URL=mysql://runner@localhost/diesel_example" >> $GITHUB_ENV
91
- echo "MYSQL_UNIT_TEST_DATABASE_URL=mysql://runner@localhost/diesel_unit_test" >> $GITHUB_ENV
85
+ echo "DATABASE_URL=mysql://runner@localhost/diesel_test" >> $GITHUB_ENV
92
86
93
87
- name : Install postgres (Windows)
94
88
if : runner.os == 'Windows' && matrix.backend == 'postgres'
97
91
choco install postgresql12 --force --params '/Password:root'
98
92
echo "C:\Program Files\PostgreSQL\12\bin" >> $GITHUB_PATH
99
93
echo "C:\Program Files\PostgreSQL\12\lib" >> $GITHUB_PATH
100
- echo "PG_DATABASE_URL=postgres://postgres:root@localhost/" >> $GITHUB_ENV
101
- echo "PG_EXAMPLE_DATABASE_URL=postgres://postgres:root@localhost/diesel_example" >> $GITHUB_ENV
94
+ echo "DATABASE_URL=postgres://postgres:root@localhost/" >> $GITHUB_ENV
102
95
103
96
- name : Install mysql (Windows)
104
97
if : runner.os == 'Windows' && matrix.backend == 'mysql'
@@ -111,9 +104,7 @@ jobs:
111
104
if : runner.os == 'Windows' && matrix.backend == 'mysql'
112
105
shell : bash
113
106
run : |
114
- echo "MYSQL_DATABASE_URL=mysql://root@localhost/diesel_test" >> $GITHUB_ENV
115
- echo "MYSQL_EXAMPLE_DATABASE_URL=mysql://root@localhost/diesel_example" >> $GITHUB_ENV
116
- echo "MYSQL_UNIT_TEST_DATABASE_URL=mysql://root@localhost/diesel_unit_test" >> $GITHUB_ENV
107
+ echo "DATABASE_URL=mysql://root@localhost/diesel_test" >> $GITHUB_ENV
117
108
118
109
- name : Install rust toolchain
119
110
uses : actions-rs/toolchain@v1
0 commit comments