Skip to content

Commit

Permalink
fix: CI
Browse files Browse the repository at this point in the history
  • Loading branch information
abourtnik committed Dec 7, 2023
1 parent d10ecc4 commit 3c1c6ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@ jobs:
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
DB_DATABASE: ':memory:'
run: vendor/bin/phpunit
2 changes: 1 addition & 1 deletion app/Http/Controllers/User/VideoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function update(UpdateVideoRequest $request, Video $video): RedirectRespo
default => null,
},
'publication_date' => $video->publication_date?->isPast() ? $video->publication_date : match((int) $request->get('status')) {
VideoStatus::PUBLIC->value => null,
VideoStatus::PUBLIC->value => now(),
VideoStatus::PLANNED->value => $request->get('scheduled_date'),
default => null,
}
Expand Down

0 comments on commit 3c1c6ea

Please sign in to comment.