A collection of reusable GitHub Actions workflows I use in my public and private projects.
- Tests
- Type Coverage
- Code Styling
- Code Analysis
- Auto Merge
- Support Us
- Contributing
- Security Vulnerabilities
- Credits
- License
Workflow to run Laravel tests using Pest.
.github/workflows/tests.yml
name: Tests
on:
push:
paths:
- '**.php'
- 'composer.json'
- 'composer.lock'
- 'phpunit.xml'
- 'phpunit.ci.xml'
- '.github/workflows/tests.yml'
workflow_dispatch:
jobs:
tests:
name: Tests
uses: mozex/reusable-workflows/.github/workflows/tests.yml@main
secrets:
TOKEN: ${{ secrets.KEYMASTER_TOKEN }}
with:
php_version: '8.3'
phpunit_config_file: 'phpunit.xml'
Workflow to run Type Converage using Pest.
.github/workflows/type-coverage.yml
name: Type Coverage
on:
push:
paths:
- '**.php'
- 'composer.json'
- 'composer.lock'
- 'phpunit.xml'
- 'phpunit.ci.xml'
- '.github/workflows/type-coverage.yml'
workflow_dispatch:
jobs:
type-coverage:
name: Type Coverage
uses: mozex/reusable-workflows/.github/workflows/type-coverage.yml@main
secrets:
TOKEN: ${{ secrets.KEYMASTER_TOKEN }}
with:
php_version: '8.3'
phpunit_config_file: 'phpunit.xml'
min: 100
Workflow to run Laravel Pint and automatically fix code style violations. Changes are pushed back to the GitHub repository.
.github/workflows/code-styling.yml
name: Code Styling
on:
push:
paths:
- '**.php'
- 'pint.json'
- '.github/workflows/code-styling.yml'
workflow_dispatch:
jobs:
code-styling:
name: Code Styling
uses: mozex/reusable-workflows/.github/workflows/code-styling.yml@main
with:
php_version: '8.3'
message: 'Styling'
test_mode: true
Workflow to run Larastan in projects.
.github/workflows/code-analysis.yml
name: Code Analysis
on:
push:
paths:
- '**.php'
- 'phpstan.neon.dist'
- '.github/workflows/code-analysis.yml'
workflow_dispatch:
jobs:
code-analysis:
name: Code Analysis
uses: mozex/reusable-workflows/.github/workflows/code-analysis.yml@main
secrets:
TOKEN: ${{ secrets.KEYMASTER_TOKEN }}
with:
php_version: '8.3'
larastan_config_file: 'phpstan.php'
Workflow that can automatically merge Dependabot pull requests after the CI builds has run successfully.
.github/workflows/auto-merge.yml
name: Auto Merge
on: pull_request_target
jobs:
auto-merge:
name: Auto Merge
uses: mozex/reusable-workflows/.github/workflows/auto-merge.yml@main
secrets:
TOKEN: ${{ secrets.KEYMASTER_TOKEN }}
Creating and maintaining open-source projects requires significant time and effort. Your support will help enhance the project and enable further contributions to the Laravel community.
Sponsorship can be made through the GitHub Sponsors program. Just click the "Sponsor" button at the top of this repository. Any amount is greatly appreciated, even a contribution as small as $1 can make a big difference and will go directly towards developing and improving this package.
Thank you for considering sponsoring. Your support truly makes a difference!
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.