forked from Xowap/PHP-Serial
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (58 loc) · 1.63 KB
/
Copy pathci.yml
File metadata and controls
62 lines (58 loc) · 1.63 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
name: CI
on:
push:
branches: [develop, '3.0.0']
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4', '8.5']
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update && sudo apt-get install -y socat
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- run: composer update --prefer-dist --no-interaction
- run: composer validate --strict
- run: composer lint
- run: composer analyse
- run: composer test
macos:
runs-on: macos-latest
timeout-minutes: 15
name: macOS / PHP 8.4
steps:
- uses: actions/checkout@v4
- run: brew install socat
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none
- run: composer update --prefer-dist --no-interaction
- run: composer validate --strict
- run: composer lint
- run: composer analyse
- run: composer test
lowest:
runs-on: ubuntu-latest
timeout-minutes: 15
name: PHP 8.2 / lowest dependencies
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update && sudo apt-get install -y socat
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none
- run: composer update --prefer-lowest --prefer-stable --prefer-dist --no-interaction
- run: composer validate --strict
- run: composer lint
- run: composer analyse
- run: composer test