Lock Nova to 4.33.3 #602
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
name: Run tests | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
test: | |
name: PHP 8.2, Laravel 10.* | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
- name: Cache Composer dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.composer/cache/files | |
key: php-8.2-laravel-10.*-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: php-8.2-laravel-10.*-composer- | |
- name: Cache npm dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: npm-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: npm- | |
- name: Copy ENV Laravel Configuration for CI | |
run: | | |
php -r "file_exists('.env') || copy('.env.example', '.env');" | |
echo APP_ENV=testing >> $GITHUB_ENV | |
- name: Install dependencies | |
run: | | |
composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}" | |
composer install --prefer-dist --no-interaction --no-progress | |
npm install | |
- name: Build Assets | |
run: npm run build | |
- name: Generate key | |
run: php artisan key:generate | |
- name: Run PHP tests | |
run: vendor/bin/phpunit |