-
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (48 loc) · 1.56 KB
/
Copy pathci.yml
File metadata and controls
63 lines (48 loc) · 1.56 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
name: Continuous Integration
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
tests:
runs-on: ${{ matrix.os }}
env:
ENV: DEVELOPMENT
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: ['8.5']
composer-version: [v2]
dependency-version: [prefer-lowest, prefer-stable]
name: ${{ matrix.php }} - ${{ matrix.os }} - Composer ${{ matrix.composer-version }} --${{ matrix.dependency-version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ matrix.composer-version }}-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: zip
coverage: pcov
tools: composer:${{ matrix.composer-version }}
- name: Validate composer.json and composer.lock
run: composer validate --working-dir=. --strict
- name: Install PHP dependencies
run: composer update --${{ matrix.dependency-version }} --ansi --no-interaction --prefer-dist
- name: Check PHP Syntax
run: composer check-syntax
- name: Check Coding Standards
run: composer check-style
# - name: Check with PHPStan
# run: composer phpstan
- name: Check Test Cases
run: composer test