File tree 2 files changed +75
-0
lines changed
2 files changed +75
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : be/init
2
+ description : be/init
3
+ runs :
4
+ using : composite
5
+ steps :
6
+ - uses : actions/checkout@v4
7
+ with :
8
+ submodules : true
9
+ - uses : shivammathur/setup-php@v2
10
+ with :
11
+ php-version : ' 8.3'
12
+ tools : composer cs2pr
13
+ coverage : none
14
+ ini-values : opcache.enable_cli=1
15
+ env :
16
+ update : ' true'
17
+ - run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
18
+ working-directory : be
19
+ shell : bash
20
+ - id : composer-cache
21
+ run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
22
+ working-directory : be
23
+ shell : bash
24
+ - uses : actions/cache@v4
25
+ with :
26
+ path : ${{ steps.composer-cache.outputs.dir }}
27
+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
28
+ restore-keys : ${{ runner.os }}-composer-
29
+ - run : composer install --prefer-dist
30
+ working-directory : be
31
+ shell : bash
Original file line number Diff line number Diff line change
1
+ name : be
2
+ on :
3
+ push :
4
+ # paths: [be/**]
5
+ defaults :
6
+ run :
7
+ working-directory : be
8
+ jobs :
9
+ phpstan :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - uses : ./.github/actions/be
14
+ - run : phpstan analyse
15
+ psalm :
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - uses : ./.github/actions/be
20
+ - run : psalm --output-format=github
21
+ php-cs-fixer :
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+ - uses : ./.github/actions/be
26
+ - run : php-cs-fixer fix --dry-run --format=checkstyle | cs2pr
27
+ phpcs :
28
+ runs-on : ubuntu-latest
29
+ steps :
30
+ - uses : actions/checkout@v4
31
+ - uses : ./.github/actions/be
32
+ - id : run
33
+ run : phpcs --report-full --report-checkstyle=./phpcs-report.xml
34
+ - if : always() && steps.run.outcome == 'failure'
35
+ run : cs2pr ./phpcs-report.xml
36
+ pint :
37
+ runs-on : ubuntu-latest
38
+ steps :
39
+ - uses : actions/checkout@v4
40
+ - uses : ./.github/actions/be
41
+ - id : run
42
+ run : pint --test
43
+ - if : failure() && steps.run.outcome != 'success'
44
+ run : pint --test --format=checkstyle | cs2pr
You can’t perform that action at this time.
0 commit comments