https://github.com/revotale/php-composer-testing-action
GitHub CI Action to simplify the process of testing composer packages for PHP.
https://github.com/revotale/php-composer-testing-action
ci compatibility-testing composer package-testing php testing
Last synced: about 2 months ago
JSON representation
GitHub CI Action to simplify the process of testing composer packages for PHP.
- Host: GitHub
- URL: https://github.com/revotale/php-composer-testing-action
- Owner: RevoTale
- License: mit
- Created: 2025-06-04T11:38:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-12-13T13:41:20.000Z (6 months ago)
- Last Synced: 2026-03-11T13:43:25.213Z (3 months ago)
- Topics: ci, compatibility-testing, composer, package-testing, php, testing
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-composer-testing-action
GitHub CI Action to simplify the process of testing composer packages for PHP.
## Features
- 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
## Usage
Add the following to your `.github/workflows/test.yml`:
```yaml
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 }}
```
[MIT Licence](./LICENCE)