Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedGamal905 committed Oct 30, 2024
1 parent 4c8d775 commit b128f2f
Showing 1 changed file with 37 additions and 29 deletions.
66 changes: 37 additions & 29 deletions .github/workflows/tests.yml
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

0 comments on commit b128f2f

Please sign in to comment.