Skip to content

Latest commit

History

39 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

workflows.php

Default workflos for php projects

Available Workflows

CI

Validates composer.json and runs the CI pipelines to verify the project is working correctly. The workflow supports building a matrix of php versions and stabilities. By default prefer-lowest and prefer-stable are tested with all given php versions which should cover most of the package ranges.

Inputs

php-versions:
description: 'The php versions to test as JSON array. Will be converted and used to create a matrix.'
default: '["8.1"]'
required: true
type: string
prefer-stability:
description: 'The staibility of the packages to use. Will be converted and used to create a matrix.'
default: '["prefer-lowest", "prefer-stable"]'
type: string
test-command:
description: 'The command to run for executing tests'
default: 'composer ci-all'
type: string

Example

name: CIon:
push:
branches:
- main
- releasepaths-ignore:
- '**.md'pull_request:
branches:
- main
- releasepaths-ignore:
- '**.md'jobs:
ci:
uses: codenamephp/workflows.php/.github/workflows/ci.yml@mainwith:
php-versions: '["8.1", "8.0"]'

About

Default workflos for php projects

Resources

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors