Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

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:

name: Run Composer Testson:
push:
branches: [ main ]pull_request:
jobs:
test:
runs-on: ubuntu-lateststrategy:
matrix:
php: [ '8.4', '8.2', '8.0' ]prefer-lowest: [1,0]steps:
- name: Checkout codeuses: actions/checkout@v4
- name: Run Composer Testing Actionuses: RevoTale/php-composer-testing-action@v1with:
php-version: ${{ matrix.php }}prefer-lowest: ${{ matrix.prefer-lowest }}

MIT Licence

About

GitHub CI Action to simplify the process of testing composer packages for PHP.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors