gitea ci workflow - change validation steps composer install
This commit is contained in:
parent
ac0dc3c9e3
commit
493068cc1c
|
@ -102,8 +102,7 @@ jobs:
|
||||||
|
|
||||||
validation:
|
validation:
|
||||||
name: Coding Standard & Static Analysis
|
name: Coding Standard & Static Analysis
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
|
@ -123,6 +122,17 @@ jobs:
|
||||||
path: ${{ steps.composercache.outputs.dir }}
|
path: ${{ steps.composercache.outputs.dir }}
|
||||||
key: ${{ runner.os }}-composer-${{ steps.key-date.outputs.date }}-${{ hashFiles('composer.json') }}-${{ matrix.prefer-lowest }}
|
key: ${{ runner.os }}-composer-${{ steps.key-date.outputs.date }}-${{ hashFiles('composer.json') }}-${{ matrix.prefer-lowest }}
|
||||||
|
|
||||||
|
- name: Composer install
|
||||||
|
run: |
|
||||||
|
composer --version
|
||||||
|
if ${{ matrix.prefer-lowest == 'prefer-lowest' }}
|
||||||
|
then
|
||||||
|
composer update --prefer-lowest --prefer-stable
|
||||||
|
composer require --dev dereuromark/composer-prefer-lowest:dev-master
|
||||||
|
else
|
||||||
|
composer install --no-progress --prefer-dist --optimize-autoloader
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Composer phpstan setup
|
- name: Composer phpstan setup
|
||||||
run: composer stan-setup
|
run: composer stan-setup
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue