Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/php-actions/phpspec
Run your phpspec tests in your Github Actions.
https://github.com/php-actions/phpspec
Last synced: about 1 month ago
JSON representation
Run your phpspec tests in your Github Actions.
- Host: GitHub
- URL: https://github.com/php-actions/phpspec
- Owner: php-actions
- Created: 2019-11-16T21:12:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-18T14:50:31.000Z (about 5 years ago)
- Last Synced: 2024-03-14T19:53:07.256Z (9 months ago)
- Language: Dockerfile
- Size: 7.81 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.
```yaml
name: CIon: [push]
jobs:
build:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v1
- uses: php-actions/composer@master # or alternative dependency management
- name: phpspec
uses: php-actions/phpspec@master
with:
config: phpspec.yml # or wherever your config file is
# ... then your own project steps ...
```Example with matrix
-------------------
```yaml
name: CIon: [push]
jobs:
build:
name: PHP ${{ matrix.php }} (${{ matrix.os }})runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
php: [ 7.1, 7.2, 7.3, 7.4, nightly ]
os: [ ubuntu-latest ]steps:
- name: Checkout
uses: actions/checkout@master- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}- uses: php-actions/composer@master
- name: PHP spec
uses: php-actions/phpspec@master
with:
config: phpspec.yml
```