pruebas configuracion runner
Some checks failed
Simple CI Pipeline for PHP / build (push) Failing after 0s

This commit is contained in:
David Vargas 2024-09-05 14:12:24 -06:00
parent 00333b1f75
commit 688289b19e

View File

@ -13,25 +13,16 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 run: git clone ${{ secrets.REPO_URL }} .
- name: Set up PHP - name: Set up PHP
uses: shivammathur/setup-php@v2 run: sudo apt update && sudo apt install php-cli composer -y
with:
php-version: 8.3
- name: Install Composer dependencies - name: Install Composer dependencies
run: composer install run: composer install
- name: Run PHP lint - name: Run PHP lint
run: | run: ./vendor/bin/phpcs --standard=PSR12 src/
composer require --dev squizlabs/php_codesniffer
./vendor/bin/phpcs --standard=PSR12 src/
- name: Run PHP tests - name: Run PHP tests
run: | run: ./vendor/bin/phpunit --verbose
if [ -f vendor/bin/phpunit ]; then
vendor/bin/phpunit --verbose
else
echo "PHPUnit no está instalado o no hay pruebas configuradas."
fi