Skip to content

Commit c670380

Browse files
authored
Use Github actions (#52)
* Use Github actions * Dont use common 4.0
1 parent 9d6e34d commit c670380

File tree

5 files changed

+45
-70
lines changed

5 files changed

+45
-70
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
name: Test
9+
runs-on: Ubuntu-20.04
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
php: [ '7.2', '7.3', '7.4', '8.0' ]
14+
strategy: [ 'highest' ]
15+
sf_version: ['']
16+
include:
17+
- php: 7.4
18+
strategy: 'lowest'
19+
- php: 7.3
20+
sf_version: '3.*'
21+
- php: 7.3
22+
sf_version: '4.*'
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v2
27+
28+
- name: Set up PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php }}
32+
coverage: none
33+
tools: flex
34+
35+
- name: Download dependencies
36+
uses: ramsey/composer-install@v1
37+
env:
38+
SYMFONY_REQUIRE: ${{ matrix.sf_version }}
39+
with:
40+
dependency-versions: ${{ matrix.strategy }}
41+
composer-options: --no-interaction --prefer-dist --optimize-autoloader
42+
43+
- name: Run tests
44+
run: ./vendor/bin/phpunit
45+

.scrutinizer.yml

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

.travis.yml

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

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
},
1616
"require-dev": {
1717
"phpunit/phpunit": "^8.4",
18-
"symfony/phpunit-bridge": "^4.2 || ^5.0",
1918
"symfony/framework-bundle": " ^3.4 || ^4.2 || ^5.0"
2019
},
2120
"autoload": {

phpunit.xml.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
bootstrap="./vendor/autoload.php"
1212
>
1313

14-
<listeners>
15-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
16-
</listeners>
17-
1814
<testsuites>
1915
<testsuite name="Tests">
2016
<directory>./tests</directory>

0 commit comments

Comments
 (0)