Skip to content

Commit 7f79b83

Browse files
authored
Merge pull request #136 from W0rma/github-actions
Migrate the CI to GitHub Actions
2 parents 084befb + d65cdc4 commit 7f79b83

2 files changed

Lines changed: 60 additions & 41 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
check_composer:
9+
name: Check composer.json
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: shivammathur/setup-php@v2
14+
with:
15+
coverage: none
16+
php-version: '8.0'
17+
- run: composer validate --strict --no-check-lock
18+
19+
tests:
20+
name: "Tests on PHP ${{ matrix.php }}${{ matrix.name_suffix }}"
21+
runs-on: ubuntu-latest
22+
env:
23+
SYMFONY_PHPUNIT_REMOVE: '' # don't remove prophecy
24+
SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT: 1
25+
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
php: [ '5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
30+
min_stability: [ '' ]
31+
name_suffix: [ '' ]
32+
composer_flags: [ '' ]
33+
include:
34+
- php: '8.0'
35+
min_stability: 'dev'
36+
name_suffix: ' (dev deps)'
37+
- php: '7.4'
38+
min_stability: ''
39+
name_suffix: ' (lowest deps)'
40+
composer_flags: '--prefer-lowest --prefer-stable'
41+
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: shivammathur/setup-php@v2
45+
with:
46+
coverage: "none"
47+
php-version: "${{ matrix.php }}"
48+
49+
- name: Configure stability
50+
if: "matrix.min_stability != ''"
51+
run: composer config minimum-stability "${{ matrix.min_stability }}"
52+
53+
- name: Install dependencies
54+
run: composer update --ansi --no-progress --prefer-dist --no-interaction ${{ matrix.composer_flags }}
55+
56+
- name: Install PHPUnit
57+
run: vendor/bin/simple-phpunit install
58+
59+
- name: Run tests
60+
run: vendor/bin/simple-phpunit

.travis.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)