https://github.com/ohseesoftware/github-actions-php-package
Boilerplate workflow for a PHP package.
https://github.com/ohseesoftware/github-actions-php-package
actions boilerplate github php
Last synced: 2 months ago
JSON representation
Boilerplate workflow for a PHP package.
- Host: GitHub
- URL: https://github.com/ohseesoftware/github-actions-php-package
- Owner: ohseesoftware
- License: mit
- Created: 2019-12-01T22:28:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-03T01:11:23.000Z (about 6 years ago)
- Last Synced: 2025-02-22T23:41:19.626Z (over 1 year ago)
- Topics: actions, boilerplate, github, php
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Actions - PHP Package
Boilerplate workflow for a PHP package.
## Overview
This is a workflow with two jobs:
* Test
* Release
The **Test** job runs on every push and will:
* Install composer dependencies
* Run PHP CS on the `src` and `tests` directories
* Run PHP Unit
The **Release** job runs on the `master` branch, only if the **Test** job runs successfully, and it will:
* Run `semantic-release` to handle the release process
## Setup
This boilerplate assumes a few things:
* The `phpcs` package is installed in the project: `composer require --dev "squizlabs/php_codesniffer=*"`. Our recommended PHP CS configuration can be [found here](https://github.com/ohseesoftware/phpcs-config).
* The `phpunit` package is installed in the project: `composer require --dev phpunit/phpunit`
* The project uses `semantic-release` for the release project. It uses `npx`, so you don't have to install anything into the project. You can use a `.releaserc` file in the root of the project to configure `semantic-release`.