Skip to content

Commit

Permalink
chore(ci): add github actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBellyDev committed Jan 5, 2021
1 parent a5b798f commit a90a7f6
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tests

on:
push:
pull_request:

jobs:
run:
runs-on: ubuntu-latest

strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0']
composer-stability: [ 'prefer-lowest', 'prefer-stable' ]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2

- name: Validate composer.json
run: composer validate

- name: Install dependencies
run: composer update --prefer-source --no-interaction --${{ matrix.stability }}

- name: Run phpspec tests
run: ./bin/phpspec run --format=dot

- name: Run behat tests
run: ./bin/behat

0 comments on commit a90a7f6

Please sign in to comment.