Skip to content

Switch CI setup from travisci to github actions #928

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
[push, pull_request]

jobs:
test:
name: Test on ${{ matrix.php-versions }} PHP
runs-on: ubuntu-latest

strategy:
matrix:
php-versions: ['7.1', '7.2', '7.3', '7.4']

steps:
- uses: actions/checkout@v2

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

- name: Install Composer Dependencies
uses: ramsey/composer-install@v1

- name: Run phpunit
run: vendor/bin/phpunit --verbose --coverage-text

roave_bc_check:
name: Roave BC Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Roave BC Check
uses: docker://nyholm/roave-bc-check-ga

phpstan:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: shivammathur/setup-php@v2
with:
php-version: 7.1

- name: Install Composer Dependencies
uses: ramsey/composer-install@v1

- name: Run phpstan
run: vendor/bin/phpstan analyse --no-progress
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.