-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (46 loc) · 1.79 KB
/
ci.yaml
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
name: Build and Test AdminBundle
on:
- push
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
env:
extensions: json
composer_version: 2
strategy:
matrix:
php_version:
- '8.3'
steps:
- uses: actions/checkout@v3
- name: Cache vendors
uses: actions/cache@v3
with:
path: |
~/.composer/cache
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Setup PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
extensions: ${{ env.extensions }}
ini-values: memory_limit=-1
coverage: pcov
tools: composer, php-cs-fixer, cs2pr
- name: Install dependencies
run: composer install --no-interaction
- name: Install yarn dependencies
run: yarn install --force
- name: Build yarn dependencies
run: yarn run encore production
- name: Run docker compose
run: docker compose up -d db
- name: Run phpunit
run: ls -alh vendor && bin/phpunit -c phpunit.xml.dist
- name: Run php-cs-fixer
run: PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --dry-run --using-cache=no --verbose --diff --allow-risky=yes --config .php-cs-fixer.dist.php
- name: Run phpstan
run: bin/phpstan analyse --level=5 src
- name: Run var_dump checker
run: bin/var-dump-check --symfony src tests