-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (49 loc) · 1.96 KB
/
Copy pathlarastan_pull_request.yml
File metadata and controls
63 lines (49 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Pull Request | CI Larastan
on: pull_request
jobs:
larastan:
runs-on: ubuntu-latest
name: pull-request | ci larastan
env:
PHP_VERSION: 8.5
NODE_VERSION: 24
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup PHP Environment
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.PHP_VERSION }}
extensions: dom, curl, fileinfo, pgsql, pdo_pgsql, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
- name: Prepare the .env file
run: cp .env.testing.ci .env
- name: Prepare the .env file
run: cp -f .env.testing.ci .env.testing
- name: Configure Composer Credentials
run: |
composer config http-basic.composer.fluxui.dev ${{ secrets.FLUXUI_USERNAME }} ${{ secrets.FLUXUI_LICENSE_KEY }}
composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_LICENSE_KEY }}
- name: Cache Composer Dependencies
uses: actions/cache@v5
with:
path: |
~/.composer/cache/files
~/.composer/cache/repo
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install Composer Dependencies
run: composer install --no-progress --prefer-dist --no-interaction --optimize-autoloader
- name: Publish Laravel assets
run: php artisan vendor:publish --tag=laravel-assets --ansi --force
- name: Publish Laravel Nova assets
run: php artisan vendor:publish --tag=nova-assets --ansi --force
- name: Execute static analysis
run: ./vendor/bin/phpstan analyse
- name: Store Log Artifacts
if: failure()
uses: actions/upload-artifact@v6
with:
name: Store report artifacts
path: ./storage/logs
if-no-files-found: ignore