Repository navigation
57 lines (48 loc) · 1.48 KB
/
Copy pathtests.yml
File metadata and controls
57 lines (48 loc) · 1.48 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
name: tests
on:
push:
branches:
- 'v1'
- 'v2'
- 'v3'
- 'v4'
pull_request:
branches:
- '*'
permissions:
contents: read
concurrency:
group: ${{ github.head_ref || github.ref || github.run_id }}_tests
cancel-in-progress: true
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest, windows-latest ]
php: [ 8.2, 8.3, 8.4, 8.5 ]
guzzle:
- { constraint: '^7.6', stability: prefer-lowest }
- { constraint: '^8.0', stability: prefer-stable }
name: P${{ matrix.php }} - Guzzle ${{ matrix.guzzle.constraint }} - ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, bcmath, intl, exif, iconv, fileinfo, xsl, sodium
coverage: none
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
shell: bash
run: |
composer require guzzlehttp/guzzle:${{ matrix.guzzle.constraint }} --no-update
composer update --${{ matrix.guzzle.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest -p