Use composer update instead of install (#7)

There is no composer.lock within the project. Composer would raise a
notice when using composer install without a lock file.
This commit is contained in:
Daniel Siepmann 2023-05-11 10:48:41 +02:00 committed by GitHub
parent 94be69a307
commit 65efed087a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -68,7 +68,7 @@ jobs:
run: sudo apt update && sudo apt install libxml2-utils run: sudo apt update && sudo apt install libxml2-utils
- name: Install dependencies - name: Install dependencies
run: composer install --prefer-dist --no-progress run: composer update --prefer-dist --no-progress
- name: PHPUnit configuration file - name: PHPUnit configuration file
run: xmllint --schema vendor/phpunit/phpunit/phpunit.xsd --noout phpunit.xml.dist run: xmllint --schema vendor/phpunit/phpunit/phpunit.xsd --noout phpunit.xml.dist
@ -88,7 +88,7 @@ jobs:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies - name: Install dependencies
run: composer install --prefer-dist --no-progress run: composer update --prefer-dist --no-progress
- name: Coding Guideline - name: Coding Guideline
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff run: ./vendor/bin/php-cs-fixer fix --dry-run --diff

View file

@ -24,7 +24,7 @@ let
composer composer
]; ];
text = '' text = ''
composer install --prefer-dist --no-progress --working-dir="$PROJECT_ROOT" composer update --prefer-dist --no-progress
''; '';
}; };
projectCgl = pkgs.writeShellApplication { projectCgl = pkgs.writeShellApplication {