PHP Composer package testing action
ActionsGitHub CI Action to simplify the process of testing composer packages for PHP
v1.0.2
LatestBy RevoTale
Tags
(2)GitHub CI Action to simplify the process of testing composer packages for PHP.
- Easily test your PHP Composer packages in GitHub Actions.
 - Supports multiple PHP versions.
 - Forces testing with prefer-lowest or stable.
 - PHP and Composer is auto configured
 - Use of CI cache to reduce your GitHub CI execution time
 
Add the following to your .github/workflows/test.yml:
name: Run Composer Tests
on:
  push:
    branches: [ main ]
  pull_request:
jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        php: [ '8.4', '8.2', '8.0' ]
        prefer-lowest: [1,0]
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      - name: Run Composer Testing Action
        uses: RevoTale/php-composer-testing-action@v1
        with:
          php-version: ${{ matrix.php }}
          prefer-lowest: ${{ matrix.prefer-lowest }}PHP Composer package testing action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.