From 00333b1f755d107d28a1bb0b45e4c4cb9ae36217 Mon Sep 17 00:00:00 2001 From: DavidDevGt Date: Thu, 5 Sep 2024 14:09:43 -0600 Subject: [PATCH] pruebas configuracion runner --- .gitea/workflows/actions.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/actions.yml b/.gitea/workflows/actions.yml index 3721d78..dcc8187 100644 --- a/.gitea/workflows/actions.yml +++ b/.gitea/workflows/actions.yml @@ -1,4 +1,4 @@ -name: CI/CD Pipeline for PHP +name: Simple CI Pipeline for PHP on: push: @@ -15,27 +15,20 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Install Node.js manually - run: | - curl -fsSL https://deb.nodesource.com/setup_18.x | bash - - apt-get install -y nodejs - node -v - - name: Set up PHP uses: shivammathur/setup-php@v2 with: php-version: 8.3 - tools: composer - - name: Install dependencies + - name: Install Composer dependencies run: composer install - - name: Lint PHP files + - name: Run PHP lint run: | composer require --dev squizlabs/php_codesniffer ./vendor/bin/phpcs --standard=PSR12 src/ - - name: Run tests + - name: Run PHP tests run: | if [ -f vendor/bin/phpunit ]; then vendor/bin/phpunit --verbose