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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

PHP Actions for Github

Run your phpspec tests in your Github Actions.

phpspec is a tool which can help you write clean and working PHP code using behaviour driven development or BDD. BDD is a technique derived from test-first development.

Usage

Create your Github Workflow configuration in .github/workflows/ci.yml or similar.

name: CIon: [push]jobs:
build:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v1
- uses: php-actions/composer@master # or alternative dependency management
- name: phpspecuses: php-actions/phpspec@masterwith:
config: phpspec.yml # or wherever your config file is# ... then your own project steps ...

Example with matrix

name: CIon: [push]jobs:
build:
name: PHP ${{ matrix.php }} (${{ matrix.os }})runs-on: ${{ matrix.os }}strategy:
fail-fast: falsematrix:
php: [ 7.1, 7.2, 7.3, 7.4, nightly ]os: [ ubuntu-latest ]steps:
- name: Checkoutuses: actions/checkout@master
- name: Setup PHPuses: shivammathur/setup-php@masterwith:
php-version: ${{ matrix.php }}
- uses: php-actions/composer@master
- name: PHP specuses: php-actions/phpspec@masterwith:
config: phpspec.yml

About

Run your phpspec tests in your Github Actions.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages