2121 strategy :
2222 matrix :
2323 php-version :
24- - " 7.1"
2524 - " 7.2"
2625 - " 7.3"
2726 - " 7.4"
@@ -40,13 +39,10 @@ jobs:
4039 tools : " cs2pr"
4140
4241 - name : " Install dependencies with Composer"
43- uses : " ramsey/composer-install@v1 "
42+ uses : " ramsey/composer-install@v3 "
4443 with :
4544 dependency-versions : " highest"
4645
47- - name : " Install phpunit with composer"
48- run : " composer bin phpunit install --no-interaction --no-progress --no-suggest"
49-
5046 - name : " Test fixes"
5147 run : " vendor/bin/phpunit --coverage-text"
5248
@@ -72,16 +68,10 @@ jobs:
7268 tools : " cs2pr"
7369
7470 - name : " Install dependencies with Composer"
75- uses : " ramsey/composer-install@v1 "
71+ uses : " ramsey/composer-install@v3 "
7672 with :
7773 dependency-versions : " highest"
7874
79- - name : " Install phpunit with composer"
80- run : " composer bin phpunit install --no-interaction --no-progress --no-suggest"
81-
82- - name : " Install phpstan with composer"
83- run : " composer bin phpstan install --no-interaction --no-progress --no-suggest"
84-
8575 - name : " Run a static analysis with phpstan/phpstan"
8676 run : " vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr"
8777
@@ -106,16 +96,10 @@ jobs:
10696 php-version : " ${{ matrix.php-version }}"
10797
10898 - name : " Install dependencies with Composer"
109- uses : " ramsey/composer-install@v1 "
99+ uses : " ramsey/composer-install@v3 "
110100 with :
111101 dependency-versions : " highest"
112102
113- - name : " Install phpunit with composer"
114- run : " composer bin phpunit install --no-interaction --no-progress --no-suggest"
115-
116- - name : " Install psalm with composer"
117- run : " composer bin all install --no-interaction --no-progress --no-suggest"
118-
119103 - name : " Run a static analysis with vimeo/psalm"
120104 run : " vendor/bin/psalm --show-info=false --stats --output-format=github --threads=4"
121105
@@ -139,18 +123,10 @@ jobs:
139123 php-version : " ${{ matrix.php-version }}"
140124 tools : " cs2pr"
141125
142- - name : " Cache dependencies installed with composer "
143- uses : " actions/cache@v1 "
126+ - name : " Install dependencies with Composer "
127+ uses : " ramsey/composer-install@v3 "
144128 with :
145- path : " ~/.composer/cache"
146- key : " php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}-${{ hashFiles('vendor-bin/*/composer.lock') }}"
147- restore-keys : " php-${{ matrix.php-version }}-composer-locked-"
148-
149- - name : " Install dependencies with composer"
150- run : " composer install --no-interaction --no-progress --no-suggest"
151-
152- - name : " Install phpcs with composer"
153- run : " composer bin all install --no-interaction --no-progress --no-suggest"
129+ dependency-versions : " highest"
154130
155131 # Remove -q when updating to phpcs v4
156132 - name : " Run squizlabs/php_codesniffer"
0 commit comments