File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,20 @@ jobs:
191
191
# run on a larger runner for more SSD/resource access
192
192
runs-on : ubuntu-22.04-4core-spin
193
193
if : ${{ github.repository_owner == 'spinframework' }}
194
+ services :
195
+ postgres :
196
+ image : postgres:latest
197
+ env :
198
+ POSTGRES_PASSWORD : postgres
199
+ POSTGRES_USER : postgres
200
+ POSTGRES_DB : postgres
201
+ ports :
202
+ - 5432:5432
203
+ options : >-
204
+ --health-cmd pg_isready
205
+ --health-interval 10s
206
+ --health-timeout 5s
207
+ --health-retries 5
194
208
steps :
195
209
- uses : actions/checkout@v3
196
210
@@ -217,6 +231,8 @@ jobs:
217
231
218
232
- name : Run Full Integration Tests
219
233
run : make test-integration-full
234
+ env :
235
+ DB_URL : postgres://postgres:postgres@localhost:5432/postgres
220
236
221
237
# This runs the same steps as the release build except for signing
222
238
ensure-release-builds :
Original file line number Diff line number Diff line change @@ -52,10 +52,10 @@ impl EnvVariablesProvider {
52
52
/// Creates a new EnvProvider.
53
53
///
54
54
/// * `prefix` - The string prefix to use to distinguish an environment variable that should be used.
55
- /// If not set, the default prefix is used.
55
+ /// If not set, the default prefix is used.
56
56
/// * `env_fetcher` - The function to use to fetch an environment variable.
57
- /// * `dotenv_path` - The path to the .env file to load environment variables from. If not set,
58
- /// no .env file is loaded.
57
+ /// * `dotenv_path` - The path to the .env file to load environment variables from.
58
+ /// If not set, no .env file is loaded.
59
59
pub fn new (
60
60
prefix : Option < impl Into < String > > ,
61
61
env_fetcher : impl Fn ( & str ) -> Result < String , VarError > + Send + Sync + ' static ,
You can’t perform that action at this time.
0 commit comments