Skip to content

Commit faae244

Browse files
authored
Merge pull request #135 from mbabker/feature/package-updates
Misc. Package Updates
2 parents 0eb7bfc + efdf3ed commit faae244

File tree

3 files changed

+78
-55
lines changed

3 files changed

+78
-55
lines changed

.github/workflows/ci.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
tests:
9+
name: PHPUnit PHP ${{ matrix.php }} ${{ matrix.dependency }} (Symfony ${{ matrix.symfony }})
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
php:
14+
- '7.2'
15+
- '7.3'
16+
- '7.4'
17+
- '8.0'
18+
dependency:
19+
- ''
20+
symfony:
21+
- '4.4.*'
22+
- '5.3.*'
23+
include:
24+
- php: '7.2'
25+
symfony: '4.4.*'
26+
dependency: 'lowest'
27+
- php: '8.0'
28+
symfony: '6.0.*'
29+
fail-fast: false
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v2
33+
34+
- name: Setup PHP
35+
uses: shivammathur/setup-php@v2
36+
with:
37+
php-version: ${{ matrix.php }}
38+
extensions: pcov
39+
tools: flex
40+
41+
- name: Prefer unstable Composer dependencies for Symfony 6.0
42+
if: matrix.symfony == '6.0.*'
43+
run: |
44+
composer config prefer-stable false
45+
composer config minimum-stability dev
46+
47+
- name: Get Composer Cache Directory
48+
id: composer-cache
49+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
50+
51+
- name: Cache dependencies
52+
uses: actions/cache@v2
53+
with:
54+
path: ${{ steps.composer-cache.outputs.dir }}
55+
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
56+
restore-keys: ${{ matrix.php }}-composer-
57+
58+
- name: Update project dependencies
59+
if: matrix.dependency == ''
60+
run: composer update --no-progress --ansi --prefer-stable
61+
env:
62+
SYMFONY_REQUIRE: ${{ matrix.symfony }}
63+
64+
- name: Update project dependencies lowest
65+
if: matrix.dependency == 'lowest'
66+
run: composer update --no-progress --ansi --prefer-stable --prefer-lowest
67+
env:
68+
SYMFONY_REQUIRE: ${{ matrix.symfony }}
69+
70+
- name: Validate composer
71+
run: composer validate --strict --no-check-lock
72+
73+
- name: Run tests
74+
run: vendor/bin/phpunit

.travis.yml

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

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"require": {
1616
"php": "^7.2 || ^8.0",
1717
"matthiasnoback/symfony-config-test": "^4.0.1",
18-
"symfony/dependency-injection": "^3.4 || ^4.4 || ^5.0",
19-
"symfony/config": "^3.4 || ^4.4 || ^5.0",
20-
"symfony/yaml": "^3.4 || ^4.4 || ^5.0"
18+
"symfony/dependency-injection": "^4.4 || ^5.3 || ^6.0",
19+
"symfony/config": "^4.4 || ^5.3 || ^6.0",
20+
"symfony/yaml": "^4.4 || ^5.3 || ^6.0"
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit": "^8.0"
23+
"phpunit/phpunit": "^8.0 || ^9.0"
2424
},
2525
"conflict": {
2626
"phpunit/phpunit": "<8.0"

0 commit comments

Comments
 (0)