Fixed database started for API tests in GitHub workflow

This commit is contained in:
Alejandro Celaya 2021-02-05 18:33:36 +01:00
parent bc632fd644
commit de4e677f18
4 changed files with 4 additions and 4 deletions

View file

@ -189,7 +189,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Start database server
run: docker-compose -f docker-compose.yml -f docker-compose.ci.yml up -d shlink_db
run: docker-compose -f docker-compose.yml -f docker-compose.ci.yml up -d shlink_db_postgres
- name: Use PHP
uses: shivammathur/setup-php@v2
with:

View file

@ -19,7 +19,7 @@ return [
'default_short_codes_length' => DEFAULT_SHORT_CODES_LENGTH,
'redirect_status_code' => DEFAULT_REDIRECT_STATUS_CODE,
'redirect_cache_lifetime' => DEFAULT_REDIRECT_CACHE_LIFETIME,
'auto_resolve_titles' => false, // Deprecated value. Default to true with Shlink 3.0.0
'auto_resolve_titles' => false,
],
];

View file

@ -125,7 +125,7 @@ return [
'default_short_codes_length' => $helper->getDefaultShortCodesLength(),
'redirect_status_code' => (int) env('REDIRECT_STATUS_CODE', DEFAULT_REDIRECT_STATUS_CODE),
'redirect_cache_lifetime' => (int) env('REDIRECT_CACHE_LIFETIME', DEFAULT_REDIRECT_CACHE_LIFETIME),
'auto_resolve_titles' => (bool) env('AUTO_RESOLVE_TITLES', false), // Deprecated value. Default to true
'auto_resolve_titles' => (bool) env('AUTO_RESOLVE_TITLES', false),
],
'not_found_redirects' => $helper->getNotFoundRedirectsConfig(),

View file

@ -18,7 +18,7 @@ class UrlShortenerOptions extends AbstractOptions
private bool $validateUrl = true;
private int $redirectStatusCode = DEFAULT_REDIRECT_STATUS_CODE;
private int $redirectCacheLifetime = DEFAULT_REDIRECT_CACHE_LIFETIME;
private bool $autoResolveTitles = false; // Deprecated value. Default to true with Shlink 3.0.0
private bool $autoResolveTitles = false;
public function isUrlValidationEnabled(): bool
{