Repository navigation
97 lines (86 loc) · 2.13 KB
/
Copy pathci.yml
File metadata and controls
97 lines (86 loc) · 2.13 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: CI
on:
workflow_dispatch:
inputs: {}
push:
branches:
- master
- main
- feature/**
- v*
pull_request:
branches:
- master
- main
- v*
env:
# options
composer_version: 2
coveralls_php_version: 7.4
defaults:
run:
shell: pwsh
jobs:
test:
name: PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.php-future == true }}
strategy:
fail-fast: false
matrix:
php-version:
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
- '8.5'
- '8.6'
- 'latest'
- 'nightly'
# - 'master'
include:
- php-version: '7.0'
composer-version: '2.2'
- php-version: '7.1'
composer-version: '2.2'
- php-version: '8.5'
php-future: true
- php-version: '8.6'
php-future: true
- php-version: 'nightly'
php-future: true
# - php-version: 'master'
# php-future: true
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
ini-file: development
extensions: curl, mbstring, openssl, zip
coverage: xdebug
tools: >-
phpdoc,
composer:v${{ matrix.composer-version || env.composer_version }}
- name: Setup problem matchers
run: gci *.json -lp .github/matchers | foreach { echo "::add-matcher::$($_.FullName)" }
- name: Install dependencies
run: |
composer validate --strict
composer install --prefer-dist --no-progress
- name: Run tests
run: vendor/bin/phpunit --teamcity
- name: Upload Coveralls report
uses: coverallsapp/github-action@v2
if: matrix.php-version == env.coveralls_php_version
with:
files: >-
build/logs/clover.xml