-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
1,394 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Dusk Tests | ||
on: [push] | ||
jobs: | ||
|
||
dusk-php: | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_URL: "http://127.0.0.1:8000" | ||
DB_USERNAME: root | ||
DB_PASSWORD: root | ||
MAIL_MAILER: log | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Prepare The Environment | ||
run: cp .env.example .env | ||
- name: Create Database | ||
run: | | ||
sudo systemctl start mysql | ||
mysql --user="root" --password="root" -e "CREATE DATABASE \`pr0poll\` character set UTF8mb4 collate utf8mb4_bin;" | ||
- name: Install Composer Dependencies | ||
run: composer install --no-progress --prefer-dist --optimize-autoloader | ||
- name: Generate Application Key | ||
run: php artisan key:generate | ||
- name: Upgrade Chrome Driver | ||
run: php artisan dusk:chrome-driver --detect | ||
- name: Start Chrome Driver | ||
run: ./vendor/laravel/dusk/bin/chromedriver-linux & | ||
- name: Run Laravel Server | ||
run: php artisan serve --no-reload & | ||
- name: Run Dusk Tests | ||
run: php artisan dusk | ||
- name: Upload Screenshots | ||
if: failure() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: screenshots | ||
path: tests/Browser/screenshots | ||
- name: Upload Console Logs | ||
if: failure() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: console | ||
path: tests/Browser/console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Pest Tests | ||
on: [push] | ||
jobs: | ||
|
||
dusk-php: | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_URL: "http://127.0.0.1:8000" | ||
DB_USERNAME: root | ||
DB_PASSWORD: root | ||
MAIL_MAILER: log | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Prepare The Environment | ||
run: cp .env.example .env | ||
- name: Create Database | ||
run: | | ||
sudo systemctl start mysql | ||
mysql --user="root" --password="root" -e "CREATE DATABASE \`pr0poll\` character set UTF8mb4 collate utf8mb4_bin;" | ||
- name: Install Composer Dependencies | ||
run: composer install --no-progress --prefer-dist --optimize-autoloader | ||
- name: Generate Application Key | ||
run: php artisan key:generate | ||
- name: Directory Permissions | ||
run: chmod -R 777 storage bootstrap/cache | ||
- name: Run Pest Tests | ||
run: php artisan test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.