diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 76e5bca..97456f3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -70,7 +70,7 @@ jobs: cd ${{ secrets.APP_DIR }} && git fetch -p && git checkout ${{ github.ref }} - && bash -c 'sed -i ".bak" "s/APP_VERSION=.*/APP_VERSION=$( git describe --tags --abbrev=0 )/" .env' + && bash -c 'sed -i ".bak" "s/APP_VERSION=.*/APP_VERSION=$( git describe --tags --abbrev=0 )/" .env && rm -f .env.bak' && php -c ~/www/php.ini ~/bin/composer.phar install --optimize-autoloader --no-dev && php -c ~/www/php.ini artisan migrate --force && php -c ~/www/php.ini artisan migrate:status diff --git a/database/factories/PageFactory.php b/database/factories/PageFactory.php index d279062..dc8994e 100644 --- a/database/factories/PageFactory.php +++ b/database/factories/PageFactory.php @@ -21,7 +21,7 @@ public function definition(): array return [ 'raw_page_id' => RawPage::factory(), 'site_name' => $this->faker->randomElement(SiteName::cases()), - 'url' => $this->faker->url(), + 'url' => $this->faker->unique()->url(), 'title' => $this->faker->sentence(), 'text' => $this->faker->paragraph(), 'last_modified' => now(), diff --git a/database/factories/RawPageFactory.php b/database/factories/RawPageFactory.php index f53dca2..25583be 100644 --- a/database/factories/RawPageFactory.php +++ b/database/factories/RawPageFactory.php @@ -19,7 +19,7 @@ public function definition(): array { return [ 'site_name' => $this->faker->randomElement(SiteName::cases()), - 'url' => $this->faker->url(), + 'url' => $this->faker->unique()->url(), 'html' => 'Example HTML', ]; }