Skip to content

Commit

Permalink
Switch to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaranmcnulty committed Dec 19, 2020
1 parent 14b40a8 commit 8c7dbea
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 33 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build

on:
push:
branches: [master]
pull_request:
release:
types: [created]

jobs:
tests:
runs-on: ubuntu-latest
name: Build and test
strategy:
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4, 8.0]
composer-flags: [ "" ]
include:
- php: 7.2
composer-flags: "--prefer-lowest"

steps:
- uses: actions/checkout@v2

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: none

- name: Install dependencies
run: COMPOSER_ROOT_VERSION=dev-master composer update ${{ matrix.composer-flags }}

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

- name: Run tests (phpunit)
run: ./vendor/bin/phpunit
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

0 comments on commit 8c7dbea

Please sign in to comment.