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:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user