Merge pull request #788 from nasirkhan/dependabot/composer/symfony/ht… #305
This file contains hidden or 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
| name: Laravel | |
| on: | |
| push: | |
| branches: ["main", "dev"] | |
| pull_request: | |
| branches: ["main", "dev"] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: [8.4] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: mbstring, bcmath, ctype, fileinfo, json, pdo, pdo_sqlite, sqlite3, tokenizer, xml | |
| coverage: none | |
| - name: Copy .env | |
| run: cp .env.example .env | |
| - name: Set directory permissions | |
| run: chmod -R 777 storage bootstrap/cache | |
| - name: Create SQLite database | |
| run: | | |
| mkdir -p database | |
| touch database/database.sqlite | |
| - name: Remove local Composer overrides | |
| run: echo '{}' > composer.local.json | |
| - name: Install Composer dependencies | |
| run: composer install --no-interaction --prefer-dist --optimize-autoloader | |
| - name: Generate application key | |
| run: php artisan key:generate | |
| - name: Run database migrations | |
| run: php artisan migrate --no-interaction | |
| - name: Run Tests | |
| run: php artisan test | |
| pint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| extensions: mbstring, bcmath, ctype, fileinfo, json, tokenizer | |
| coverage: none | |
| - name: Copy .env | |
| run: cp .env.example .env | |
| - name: Set directory permissions | |
| run: chmod -R 777 storage bootstrap/cache | |
| - name: Create SQLite database | |
| run: | | |
| mkdir -p database | |
| touch database/database.sqlite | |
| - name: Remove local Composer overrides | |
| run: echo '{}' > composer.local.json | |
| - name: Install Composer dependencies | |
| run: composer install --no-interaction --prefer-dist --optimize-autoloader | |
| - name: Run Laravel Pint | |
| run: ./vendor/bin/pint --test |