Serial2Format/.gitea/workflows/actions.yml
DavidDevGt d0a907fbbe
Some checks failed
Simple CI Pipeline for PHP / build (push) Failing after 0s
pruebas configuracion runner v3
2024-09-05 14:22:52 -06:00

33 lines
718 B
YAML

name: Simple CI Pipeline for PHP
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
run: git clone ${{ secrets.REPO_URL }} .
- name: Set up PHP and Composer
run: |
apt-get update
apt-get install -y php-cli curl unzip
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
- name: Install Composer dependencies
run: composer install
- name: Run PHP lint
run: ./vendor/bin/phpcs --standard=PSR12 src/
- name: Run PHP tests
run: ./vendor/bin/phpunit --verbose