-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (47 loc) · 1.25 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on:
push:
branches:
- master
pull_request:
branches: [master]
permissions:
contents: read
jobs:
phpunit:
name: "Run tests: PHP ${{ matrix.php }} Symfony ${{ matrix.symfony }} ${{ matrix.dependency }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '7.4'
symfony:
- '4.*'
- '5.*'
dependency:
- 'highest'
- 'lowest'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: flex
- name: Install dependencies
uses: ramsey/composer-install@v2
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
with:
dependency-versions: ${{ matrix.dependency }}
- name: Clear cache
uses: actions/cache@v3
with:
path: ~/.composer/cache
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.symfony }}-${{ matrix.dependency }}
restore-keys: |
${{ runner.os }}-composer-${{ matrix.php }}-${{ matrix.symfony }}-${{ matrix.dependency }}
- name: Run all tests
run: composer test