Skip to content

Latest commit

History

71 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Reusable GitHub Actions Workflows

This repository contains reusable GitHub Actions workflows for PHP projects.

Workflows

Continuous Integration (continuous-integration.yml)

A reusable workflow for PHP projects that runs PHPUnit tests across multiple PHP versions and dependency combinations.

Usage

name: Continuous Integrationon:
push:
pull_request:
workflow_dispatch:
jobs:
tests:
uses: ray-di/.github/.github/workflows/continuous-integration.yml@v1with:
old_stable: '["8.1", "8.2", "8.3"]'current_stable: "8.4"

Inputs

NameDescriptionRequiredType
old_stableJSON array of PHP versions to testYesstring
current_stableCurrent stable PHP versionYesstring
scriptAdditional PHP script to runNostring

Features

  • Runs tests on multiple PHP versions
  • Handles both highest and lowest dependencies
  • Includes code coverage reporting to Codecov
  • Caches Composer dependencies
  • Tests on both Ubuntu and Windows (for current stable PHP version)
  • Configurable additional script execution

Test Matrix

The workflow runs tests with the following combinations:

  • All PHP versions from old_stable on Ubuntu with both highest and lowest dependencies
  • Current stable PHP version on:
    • Ubuntu (highest dependencies)
    • Ubuntu (lowest dependencies)
    • Windows (highest dependencies)

GH actions workflow templates

About

Ray.Di templates

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors