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

This commit is contained in:
David Vargas 2024-09-05 14:09:43 -06:00
parent c7bb015567
commit 00333b1f75

View File

@ -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