Skip to content

Commit

Permalink
ci: automatically add model docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Roardom committed May 20, 2024
1 parent 21255ab commit 4d85795
Show file tree
Hide file tree
Showing 4 changed files with 666 additions and 1 deletion.
64 changes: 64 additions & 0 deletions .github/workflows/ide-helper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Laravel IDE Helper
on: [pull_request_target, pull_request, push]
jobs:
test:
strategy:
matrix:
operating-system:
- ubuntu-22.04
php-version:
- '8.3'
name: php ${{ matrix.php-version }} on ${{ matrix.operating-system }}
services:
mysql:
image: mysql:8.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: unit3d
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
redis:
image: redis:7.2.1
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: bcmath, ctype, dom, fileinfo, json, libxml, mbstring, openssl, pdo, tokenizer, xml, zip
coverage: none
- name: Install Composer Dependencies
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Prepare The Laravel Environment
run: cp .env.example .env
- name: Generate Application Key
run: php artisan key:generate
- name: Run Migrations
run: php artisan migrate --force
- name: Clear Application Cache
run: php artisan optimize:clear
- name: Run Laravel IDE Helper
run: php artisan ide-helper:models --write --reset
- name: Run Pint
uses: aglipanci/[email protected]
with:
preset: psr12
verboseMode: true
- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update model docblocks (Laravel IDE Helper CI)
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"vstelmakh/url-highlight": "^3.0.3"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^3.0",
"brianium/paratest": "v7.4.0",
"calebdw/larastan-livewire": "^1.0.1",
"fakerphp/faker": "^1.23.1",
Expand Down
292 changes: 291 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4d85795

Please sign in to comment.