Skip to main content
edited body
Source Link
sv3n
  • 11.7k
  • 7
  • 41
  • 73

Late answer ...

I've played around with github actions and PHPCompatibility check these days.

If you use composer for you project, you dont need a docker image.

Add (dev) dependencies:
  • squizlabs/php_codesniffer
  • phpcompatibility/php-compatibility
(Auto-)Install PHPCompatibility (and other) rules
  • dealerdirect/phpcodesniffer-composer-installer
Add Workflow file to .github/workflows with ...
    ...
    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: PHPCodeSniffer
        run: php vendor/bin/phpcs <your-options>

E.g.E.g. ...

Late answer ...

I've played around with github actions and PHPCompatibility check these days.

If you use composer for you project, you dont need a docker image.

Add (dev) dependencies:
  • squizlabs/php_codesniffer
  • phpcompatibility/php-compatibility
(Auto-)Install PHPCompatibility (and other) rules
  • dealerdirect/phpcodesniffer-composer-installer
Add Workflow file to .github/workflows with ...
    ...
    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: PHPCodeSniffer
        run: php vendor/bin/phpcs <your-options>

E.g. ...

Late answer ...

I've played around with github actions and PHPCompatibility check these days.

If you use composer for you project, you dont need a docker image.

Add (dev) dependencies:
  • squizlabs/php_codesniffer
  • phpcompatibility/php-compatibility
(Auto-)Install PHPCompatibility (and other) rules
  • dealerdirect/phpcodesniffer-composer-installer
Add Workflow file to .github/workflows with ...
    ...
    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: PHPCodeSniffer
        run: php vendor/bin/phpcs <your-options>

E.g. ...

added 109 characters in body
Source Link
sv3n
  • 11.7k
  • 7
  • 41
  • 73

Late answer ...

I've played around with github actions and PHPCompatibility check these days.

If you use composer for you project, you dont need a docker image.

Add (dev) dependencies:
  • squizlabs/php_codesniffer
  • phpcompatibility/php-compatibility
(Auto-)Install PHPCompatibility (and other) rules
  • dealerdirect/phpcodesniffer-composer-installer
Add Workflow file to .github/workflows with ...
    ...
    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: PHPCodeSniffer
        run: php vendor/bin/phpcs <your-options>

E.g. ...

Late answer ...

I've played around with github actions and PHPCompatibility check these days.

If you use composer for you project, you dont need a docker image.

Add (dev) dependencies:
  • squizlabs/php_codesniffer
  • phpcompatibility/php-compatibility
(Auto-)Install PHPCompatibility (and other) rules
  • dealerdirect/phpcodesniffer-composer-installer
Add Workflow file to .github/workflows with ...
    ...
    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: PHPCodeSniffer
        run: php vendor/bin/phpcs <your-options>

Late answer ...

I've played around with github actions and PHPCompatibility check these days.

If you use composer for you project, you dont need a docker image.

Add (dev) dependencies:
  • squizlabs/php_codesniffer
  • phpcompatibility/php-compatibility
(Auto-)Install PHPCompatibility (and other) rules
  • dealerdirect/phpcodesniffer-composer-installer
Add Workflow file to .github/workflows with ...
    ...
    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: PHPCodeSniffer
        run: php vendor/bin/phpcs <your-options>

E.g. ...

Source Link
sv3n
  • 11.7k
  • 7
  • 41
  • 73

Late answer ...

I've played around with github actions and PHPCompatibility check these days.

If you use composer for you project, you dont need a docker image.

Add (dev) dependencies:
  • squizlabs/php_codesniffer
  • phpcompatibility/php-compatibility
(Auto-)Install PHPCompatibility (and other) rules
  • dealerdirect/phpcodesniffer-composer-installer
Add Workflow file to .github/workflows with ...
    ...
    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: PHPCodeSniffer
        run: php vendor/bin/phpcs <your-options>