-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.02 KB
/
main.yml
File metadata and controls
40 lines (37 loc) · 1.02 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
name: CI
on:
- push
- pull_request
jobs:
tests:
runs-on: ubuntu-24.04
strategy:
matrix:
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 5
# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- run: composer install --no-progress
- run: composer phpstan
- run: composer phpunit
tests_lowest_dependencies:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 5
# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
php-version: '7.1'
coverage: none
- run: composer update --no-progress --prefer-lowest
- run: composer phpstan
- run: composer phpunit