-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
4c8d775
commit b128f2f
Showing
1 changed file
with
37 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,38 @@ | ||
name: Tests | ||
on: ['push', 'pull_request'] | ||
name: Run tests | ||
|
||
on: push | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
tools: composer:v2 | ||
coverage: xdebug | ||
|
||
- name: Install Dependencies | ||
run: | | ||
cp -v .env.example .env | ||
composer install --no-interaction --prefer-dist --optimize-autoloader | ||
php artisan key:generate | ||
- name: Compile Assets | ||
run: npm run build | ||
|
||
- name: Tests | ||
run: ./vendor/bin/pest --coverage | ||
phpunit: | ||
name: Run tests | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.3' | ||
tools: composer:v2 | ||
coverage: xdebug | ||
|
||
- name: Run composer install | ||
run: composer install --no-interaction --prefer-dist --optimize-autoloader | ||
|
||
- name: Prepare Laravel Application | ||
run: | | ||
cp .env.example .env | ||
php artisan key:generate | ||
- name: Directory Permissions | ||
run: chmod -R 777 storage bootstrap/cache | ||
|
||
- name: Setup Vite Manifest | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Run tests | ||
run: php artisan test --coverage |