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