diff --git a/.gitea/workflows/actions.yml b/.gitea/workflows/actions.yml index 3721d78..dcc8187 100644 --- a/.gitea/workflows/actions.yml +++ b/.gitea/workflows/actions.yml @@ -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