From 688289b19e82b14d053b03a83e3115509e2c2272 Mon Sep 17 00:00:00 2001 From: DavidDevGt Date: Thu, 5 Sep 2024 14:12:24 -0600 Subject: [PATCH] pruebas configuracion runner --- .gitea/workflows/actions.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/actions.yml b/.gitea/workflows/actions.yml index dcc8187..bba01a8 100644 --- a/.gitea/workflows/actions.yml +++ b/.gitea/workflows/actions.yml @@ -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