pruebas configuracion runner
Some checks failed
Simple CI Pipeline for PHP / build (push) Failing after 0s
Some checks failed
Simple CI Pipeline for PHP / build (push) Failing after 0s
This commit is contained in:
parent
00333b1f75
commit
688289b19e
@ -13,25 +13,16 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
run: git clone ${{ secrets.REPO_URL }} .
|
||||
|
||||
- name: Set up PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 8.3
|
||||
run: sudo apt update && sudo apt install php-cli composer -y
|
||||
|
||||
- name: Install Composer dependencies
|
||||
run: composer install
|
||||
|
||||
- name: Run PHP lint
|
||||
run: |
|
||||
composer require --dev squizlabs/php_codesniffer
|
||||
./vendor/bin/phpcs --standard=PSR12 src/
|
||||
run: ./vendor/bin/phpcs --standard=PSR12 src/
|
||||
|
||||
- name: Run PHP tests
|
||||
run: |
|
||||
if [ -f vendor/bin/phpunit ]; then
|
||||
vendor/bin/phpunit --verbose
|
||||
else
|
||||
echo "PHPUnit no está instalado o no hay pruebas configuradas."
|
||||
fi
|
||||
run: ./vendor/bin/phpunit --verbose
|
||||
|
Loading…
Reference in New Issue
Block a user