-
-
Notifications
You must be signed in to change notification settings - Fork 83
50 lines (42 loc) · 1.35 KB
/
ci.yml
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
name: Bundle CI
on:
push:
branches: ['main']
pull_request:
schedule:
- cron: '0 */12 * * *'
jobs:
tests:
name: "Tests ${{ matrix.php-version }} deps ${{ matrix.dependency-versions }}"
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
# normal, highest, non-dev installs
php-version: ['8.1', '8.2', '8.3', '8.4']
dependency-versions: ['highest']
include:
# testing lowest PHP version with lowest dependencies
- php-version: '8.1'
dependency-versions: 'lowest'
steps:
- name: "Checkout code"
uses: "actions/checkout@v2"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
- name: Allow Flex Plugin
run: |
composer global config --no-plugins allow-plugins.symfony/flex true
- name: Install Global Dependencies
run: |
composer global require --no-progress --no-scripts --no-plugins symfony/flex @dev
- name: "Composer install"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependency-versions }}"
composer-options: "--prefer-dist --no-progress"
- name: Run tests
run: ./vendor/bin/simple-phpunit