-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (39 loc) · 1.24 KB
/
php.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
name: GPS Messenger Bundle CI
on:
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
php-version:
- '8.2'
- '8.3'
platform: [ubuntu-latest]
name: PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: nanasess/setup-php@master
with:
php-version: ${{ matrix.php-version }}
- name: Validate composer.json
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ matrix.php-version }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest --no-ansi --no-interaction --no-scripts
- name: Run style tests
run: vendor/bin/ecs check -vv
- name: Run static analyse tests
run: vendor/bin/psalm --php-version=${{ matrix.php-version }}
- name: Run unit tests
run: vendor/bin/phpunit