@@ -28,22 +28,14 @@ jobs:
2828 tools : composer
2929 coverage : none
3030
31- # https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#setting-an-environment-variable
32- - name : Configure composer root version
33- run : |
34- source .composer-root-version
35- echo "COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION}" >> $GITHUB_ENV
36-
3731 - name : Install Composer dependencies
38- uses : ramsey/composer- install@v2
32+ uses : ./.github/actions/ install-vendor
3933
4034 - name : Install PHP-CS-Fixer
41- uses : ramsey/composer- install@v2
35+ uses : ./.github/actions/ install-tool
4236 with :
43- working-directory : ' vendor-bin/php-cs-fixer'
44-
45- - name : Ensure PHP-CS-Fixer Makefile target is up to date
46- run : make php_cs_fixer_install
37+ vendor-bin-tool : php-cs-fixer
38+ makefile-command : php_cs_fixer_install
4739
4840 - run : make cs_lint
4941 phpstan :
@@ -60,22 +52,14 @@ jobs:
6052 tools : composer
6153 coverage : none
6254
63- # https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#setting-an-environment-variable
64- - name : Configure composer root version
65- run : |
66- source .composer-root-version
67- echo "COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION}" >> $GITHUB_ENV
68-
6955 - name : Install Composer dependencies
70- uses : ramsey/composer- install@v2
56+ uses : ./.github/actions/ install-vendor
7157
7258 - name : Install PHPStan
73- uses : ramsey/composer- install@v2
59+ uses : ./.github/actions/ install-tool
7460 with :
75- working-directory : ' vendor-bin/phpstan'
76-
77- - name : Ensure PHPStan Makefile target is up to date
78- run : make phpstan_install
61+ vendor-bin-tool : phpstan
62+ makefile-command : phpstan_install
7963
8064 - run : make phpstan
8165 rector :
@@ -92,22 +76,14 @@ jobs:
9276 tools : composer
9377 coverage : none
9478
95- # https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#setting-an-environment-variable
96- - name : Configure composer root version
97- run : |
98- source .composer-root-version
99- echo "COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION}" >> $GITHUB_ENV
100-
10179 - name : Install Composer dependencies
102- uses : ramsey/composer- install@v2
80+ uses : ./.github/actions/ install-vendor
10381
104- - name : Install PHPStan
105- uses : ramsey/composer- install@v2
82+ - name : Install Rector
83+ uses : ./.github/actions/ install-tool
10684 with :
107- working-directory : ' vendor-bin/rector'
108-
109- - name : Ensure PHPStan Makefile target is up to date
110- run : make rector_install
85+ vendor-bin-tool : rector
86+ makefile-command : rector_install
11187
11288 - run : make rector_lint
11389
0 commit comments