Updates Workflows

Removes Nova auth step, optimized the number of caching commands called.
This commit is contained in:
Refringe 2024-06-27 23:20:21 -04:00
parent f734adca22
commit c335825bfd
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k
2 changed files with 3 additions and 28 deletions

View File

@ -22,12 +22,6 @@ jobs:
php-version: '8.3'
extensions: mbstring, dom, fileinfo
coverage: none
- name: Configure Laravel Nova Authentication
shell: bash
env:
NOVA_USERNAME: ${{ secrets.NOVA_USERNAME }}
NOVA_LICENSE_KEY: ${{ secrets.NOVA_LICENSE_KEY }}
run: composer config http-basic.nova.laravel.com "$NOVA_USERNAME" "$NOVA_LICENSE_KEY"
- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
@ -43,10 +37,7 @@ jobs:
run: |
php -r "file_exists('.env') || copy('.env.ci', '.env');"
php artisan key:generate
php artisan config:cache
php artisan route:cache
- name: Clear Laravel Config
run: php artisan config:clear
php artisan optimize
- name: Execute Code Static Analysis with Larastan
run: ./vendor/bin/phpstan analyse -c ./phpstan.neon --no-progress --error-format=github
@ -63,12 +54,6 @@ jobs:
php-version: '8.3'
extensions: mbstring, dom, fileinfo
coverage: none
- name: Configure Laravel Nova Authentication
shell: bash
env:
NOVA_USERNAME: ${{ secrets.NOVA_USERNAME }}
NOVA_LICENSE_KEY: ${{ secrets.NOVA_LICENSE_KEY }}
run: composer config http-basic.nova.laravel.com "$NOVA_USERNAME" "$NOVA_LICENSE_KEY"
- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
@ -84,10 +69,7 @@ jobs:
run: |
php -r "file_exists('.env') || copy('.env.ci', '.env');"
php artisan key:generate
php artisan config:cache
php artisan route:cache
- name: Clear Laravel Config
run: php artisan config:clear
php artisan optimize
- name: Run Pint Code Style Fixer
run: ./vendor/bin/pint
- uses: stefanzweifel/git-auto-commit-action@v5

View File

@ -25,12 +25,6 @@ jobs:
php-version: '8.3'
extensions: mbstring, dom, fileinfo
coverage: none
- name: Configure Laravel Nova Authentication
shell: bash
env:
NOVA_USERNAME: ${{ secrets.NOVA_USERNAME }}
NOVA_LICENSE_KEY: ${{ secrets.NOVA_LICENSE_KEY }}
run: composer config http-basic.nova.laravel.com "$NOVA_USERNAME" "$NOVA_LICENSE_KEY"
- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
@ -59,8 +53,7 @@ jobs:
run: |
php -r "file_exists('.env') || copy('.env.ci', '.env');"
php artisan key:generate
php artisan config:cache
php artisan route:cache
php artisan optimize
- name: Run Database Migrations
run: php artisan migrate
- name: Link Storage