Skip to content

Skip running the c5:phpcs CLI command #171

Skip running the c5:phpcs CLI command

Skip running the c5:phpcs CLI command #171

Workflow file for this run

name: Tests
on:
- pull_request
- push
jobs:
check-php-syntax:
name: Check PHP Syntax
runs-on: ubuntu-latest
steps:
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: opcache
coverage: none
tools: none
-
name: Checkout
uses: actions/checkout@v4
-
name: Check syntax
uses: mlocati/check-php-syntax@v1
docker:
name: Tests in docker
runs-on: ubuntu-latest
container: ghcr.io/concrete5-community/docker5:9
steps:
-
name: Prepare enviro
run: |
switch-composer 2
composer --version
switch-php 8.1
php --version
-
name: Checkout
uses: actions/checkout@v4
-
name: Check composer.json
run: composer --ansi --no-interaction validate --strict
-
# Step required when using a release version of Concrete, not a development one
name: Install Composer dependencies
run: composer --ansi --no-interaction install --optimize-autoloader --working-dir=/app
-
name: Prepare package
run: ln -s "$GITHUB_WORKSPACE" /app/packages/community_translation
-
name: Start services
run: ccm-service start db web
# -
# name: Check PHP Coding style
# run: /app/concrete/bin/concrete5 --ansi --no-interaction -v c5:phpcs check --no-cache --php=8.1 /app/packages/community_translation
-
name: Install package
run: sudo -u www-data /app/concrete/bin/concrete5 --ansi --no-interaction c5:package:install community_translation
-
name: Populate test data
run: sudo -u www-data /app/concrete/bin/concrete5 c5:exec /app/packages/community_translation/test/populate-test-data.php
-
name: Run PHPUnit
env:
CT_TEST_API_ROOTURL: http://localhost
run: >
sudo -Eu www-data
/app/concrete/bin/concrete5 c5:exec /app/packages/community_translation/test/start.php
--
--colors=always --no-interaction --do-not-cache-result -v