pruebas configuracion runner
Some checks failed
Simple CI Pipeline for PHP / build (push) Failing after 3s
Some checks failed
Simple CI Pipeline for PHP / build (push) Failing after 3s
This commit is contained in:
parent
c7bb015567
commit
00333b1f75
@ -1,4 +1,4 @@
|
|||||||
name: CI/CD Pipeline for PHP
|
name: Simple CI Pipeline for PHP
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -15,27 +15,20 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
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
|
- name: Set up PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: 8.3
|
php-version: 8.3
|
||||||
tools: composer
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install Composer dependencies
|
||||||
run: composer install
|
run: composer install
|
||||||
|
|
||||||
- name: Lint PHP files
|
- name: Run PHP lint
|
||||||
run: |
|
run: |
|
||||||
composer require --dev squizlabs/php_codesniffer
|
composer require --dev squizlabs/php_codesniffer
|
||||||
./vendor/bin/phpcs --standard=PSR12 src/
|
./vendor/bin/phpcs --standard=PSR12 src/
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run PHP tests
|
||||||
run: |
|
run: |
|
||||||
if [ -f vendor/bin/phpunit ]; then
|
if [ -f vendor/bin/phpunit ]; then
|
||||||
vendor/bin/phpunit --verbose
|
vendor/bin/phpunit --verbose
|
||||||
|
Loading…
Reference in New Issue
Block a user