-
Notifications
You must be signed in to change notification settings - Fork 14
49 lines (40 loc) · 1.87 KB
/
php_ci.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
name: PHP-CI
on: [ push, pull_request ]
jobs:
coding_standards:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '8.1' ]
actions:
- { name: composer, run: make check-composer }
- { name: monorepo, run: make check-monorepo }
- { name: security, run: make check-security }
- { name: ecs, run: make check-ecs, cache: ecs }
#- { name: rector, run: make check-rector, cache: rector }
- { name: phpstan, run: make check-phpstan, cache: phpstan }
name: ${{ matrix.actions.name }} (${{ matrix.php }})
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: ${{ matrix.actions.coverage || 'none' }}
extensions: pdo_sqlite
- uses: ramsey/composer-install@v2
- uses: ramsey/composer-install@v2
with:
working-directory: quality
- if: matrix.actions.cache
id: cache-quality-tools
uses: actions/cache@v3
with:
path: quality/var/cache/${{ matrix.actions.cache }}
key: ${{ runner.os }}-${{ matrix.php }}-quality-${{ matrix.actions.name }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-${{ matrix.php }}-quality-${{ matrix.actions.name }}-
- if: matrix.actions.cache && steps.cache-quality-tools.outputs.cache-hit == false
run: mkdir -p ${{ matrix.actions.cache }}
- name: '[CI] Check ${{ matrix.actions.name }} [CI]'
run: ${{ matrix.actions.run }}
shell: bash