Skip to content

Commit

Permalink
Merge pull request #2 from chris-kruining/patch-1
Browse files Browse the repository at this point in the history
added example that utilises a matrix in actions
  • Loading branch information
g105b committed Nov 18, 2019
2 parents bc5880d + c4a76b9 commit dd93f32
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,39 @@ jobs:
config: phpspec.yml # or wherever your config file is
# ... then your own project steps ...
```

Example with matrix
-------------------
```yaml
name: CI

on: [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
```

0 comments on commit dd93f32

Please sign in to comment.