diff --git a/.github/workflows/coding-standard.yml b/.github/workflows/coding-standard.yml index d6e7d644..463026e5 100644 --- a/.github/workflows/coding-standard.yml +++ b/.github/workflows/coding-standard.yml @@ -35,26 +35,9 @@ jobs: ini-values: memory_limit=-1 extensions: pdo_sqlite - - name: "Cache dependencies" - uses: "actions/cache@v2" + - uses: "ramsey/composer-install@v2" with: - path: | - ~/.composer/cache - vendor - key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" - restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" - - - name: "Install lowest dependencies" - if: ${{ matrix.dependencies == 'lowest' }} - run: "composer update --prefer-lowest --no-interaction --no-progress" - - - name: "Install highest dependencies" - if: ${{ matrix.dependencies == 'highest' }} - run: "composer update --no-interaction --no-progress" - - - name: "Install locked dependencies" - if: ${{ matrix.dependencies == 'locked' }} - run: "composer install --no-interaction --no-progress" + dependency-versions: ${{ matrix.dependencies }} - name: "Coding Standard" run: "vendor/bin/phpcs" diff --git a/.github/workflows/mutation-tests.yml b/.github/workflows/mutation-tests.yml index e9428326..b0893d4f 100644 --- a/.github/workflows/mutation-tests.yml +++ b/.github/workflows/mutation-tests.yml @@ -34,26 +34,9 @@ jobs: php-version: "${{ matrix.php-version }}" ini-values: memory_limit=-1 - - name: "Cache dependencies" - uses: "actions/cache@v2" + - uses: "ramsey/composer-install@v2" with: - path: | - ~/.composer/cache - vendor - key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" - restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" - - - name: "Install lowest dependencies" - if: ${{ matrix.dependencies == 'lowest' }} - run: "composer update --prefer-lowest --no-interaction --no-progress" - - - name: "Install highest dependencies" - if: ${{ matrix.dependencies == 'highest' }} - run: "composer update --no-interaction --no-progress" - - - name: "Install locked dependencies" - if: ${{ matrix.dependencies == 'locked' }} - run: "composer install --no-interaction --no-progress" + dependency-versions: ${{ matrix.dependencies }} - name: "Infection" run: "vendor/bin/infection" diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 6ec330f6..f5b6a1e7 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -35,26 +35,9 @@ jobs: ini-values: memory_limit=-1 extensions: pdo_sqlite - - name: "Cache dependencies" - uses: "actions/cache@v2" + - uses: "ramsey/composer-install@v2" with: - path: | - ~/.composer/cache - vendor - key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" - restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" - - - name: "Install lowest dependencies" - if: ${{ matrix.dependencies == 'lowest' }} - run: "composer update --prefer-lowest --no-interaction --no-progress" - - - name: "Install highest dependencies" - if: ${{ matrix.dependencies == 'highest' }} - run: "composer update --no-interaction --no-progress" - - - name: "Install locked dependencies" - if: ${{ matrix.dependencies == 'locked' }} - run: "composer install --no-interaction --no-progress" + dependency-versions: ${{ matrix.dependencies }} - name: "PHPStan" run: "vendor/bin/phpstan analyse" diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index f3ad2057..7ed6a8fc 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -44,26 +44,9 @@ jobs: ini-values: memory_limit=-1 extensions: pdo_sqlite - - name: "Cache dependencies" - uses: "actions/cache@v2" + - uses: "ramsey/composer-install@v2" with: - path: | - ~/.composer/cache - vendor - key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" - restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" - - - name: "Install lowest dependencies" - if: ${{ matrix.dependencies == 'lowest' }} - run: "composer update --prefer-lowest --no-interaction --no-progress" - - - name: "Install highest dependencies" - if: ${{ matrix.dependencies == 'highest' }} - run: "composer update --no-interaction --no-progress" - - - name: "Install locked dependencies" - if: ${{ matrix.dependencies == 'locked' }} - run: "composer install --no-interaction --no-progress" + dependency-versions: ${{ matrix.dependencies }} - name: "Tests" run: "vendor/bin/phpunit --coverage-clover=clover.xml --coverage-text" diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 088fe630..ab0e9316 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -35,26 +35,9 @@ jobs: ini-values: memory_limit=-1 extensions: pdo_sqlite - - name: "Cache dependencies" - uses: "actions/cache@v2" + - uses: "ramsey/composer-install@v2" with: - path: | - ~/.composer/cache - vendor - key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" - restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}" - - - name: "Install lowest dependencies" - if: ${{ matrix.dependencies == 'lowest' }} - run: "composer update --prefer-lowest --no-interaction --no-progress" - - - name: "Install highest dependencies" - if: ${{ matrix.dependencies == 'highest' }} - run: "composer update --no-interaction --no-progress" - - - name: "Install locked dependencies" - if: ${{ matrix.dependencies == 'locked' }} - run: "composer install --no-interaction --no-progress" + dependency-versions: ${{ matrix.dependencies }} - name: "psalm" run: "vendor/bin/psalm --shepherd --stats"