-
Notifications
You must be signed in to change notification settings - Fork 22
73 lines (59 loc) · 2.32 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# GithHub Actions Workflow generated with Ghygen
# Original configuration: https://ghygen.hi-folks.dev?code=fef428dc4f9ac4af2f4a879eaecdc214
name: Testing RandoPHP
on:
push:
branches:
- main
- master
- develop
- feature/**
pull_request:
branches:
- main
- master
- develop
jobs:
php-check:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: [ '8.2']
dependency-stability: [ prefer-stable ]
name: P${{ matrix.php-versions }} - ${{ matrix.operating-system}} - ${{ matrix.dependency-stability }}
steps:
- uses: actions/checkout@v3
- name: Install PHP versions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: composer run test
- name: Execute Code Sniffer via phpcs
run: |
composer run format
- name: Execute Code Static Analysis (PHP Stan)
run: |
composer run phpstan
php-tests:
runs-on: ${{ matrix.operating-system }}
needs: php-check
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest]
php-versions: [ '8.2', '8.1', '8.0']
dependency-stability: [ prefer-stable ]
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
steps:
- uses: actions/checkout@v3
- name: Install PHP versions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: composer run test