-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1938aa
commit e040f32
Showing
3 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Laravel 10 | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
container: | ||
image: laravelfans/laravel:10-dev | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: PHPUnit | ||
env: | ||
XDEBUG_MODE: coverage | ||
run: | | ||
composer require orchestra/testbench:^v8 --dev | ||
./vendor/bin/phpunit --coverage-clover coverage.xml --coverage-filter src/ tests/ | ||
- | ||
name: Lint | ||
run: | | ||
./vendor/bin/phpcs --standard=PSR12 src/ tests/ | ||
./vendor/bin/phpmd . text src/stubs/phpmd.xml | ||
- | ||
name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
name: laravel-10 | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- | ||
name: install in real Laravel project | ||
run: | | ||
rm -rf laravel-demo | ||
composer create-project --prefer-dist laravel/laravel laravel-demo "10.*" | ||
cd laravel-demo && composer require --dev laravel-fans/lint:dev-${CI_ACTION_REF_NAME} && php artisan lint:publish | ||
php artisan lint:code --help | ||
php artisan lint:code database/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Laravel 11 | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
container: | ||
image: laravelfans/laravel:11-dev | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: PHPUnit | ||
env: | ||
XDEBUG_MODE: coverage | ||
run: | | ||
composer require orchestra/testbench:^v9 --dev | ||
./vendor/bin/phpunit --coverage-clover coverage.xml --coverage-filter src/ tests/ | ||
- | ||
name: Lint | ||
run: | | ||
./vendor/bin/phpcs --standard=PSR12 src/ tests/ | ||
./vendor/bin/phpmd . text src/stubs/phpmd.xml | ||
- | ||
name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
name: laravel-11 | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- | ||
name: install in real Laravel project | ||
run: | | ||
rm -rf laravel-demo | ||
composer create-project --prefer-dist laravel/laravel laravel-demo "11.*" | ||
cd laravel-demo && composer require --dev laravel-fans/lint:dev-${CI_ACTION_REF_NAME} && php artisan lint:publish | ||
php artisan lint:code --help | ||
php artisan lint:code database/ |
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