From 65efed087aea33965df95df7344845c2924e7949 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 11 May 2023 10:48:41 +0200 Subject: [PATCH] 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. --- .github/workflows/ci.yaml | 4 ++-- shell.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 90e69e2..dfbe068 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -68,7 +68,7 @@ jobs: run: sudo apt update && sudo apt install libxml2-utils - name: Install dependencies - run: composer install --prefer-dist --no-progress + run: composer update --prefer-dist --no-progress - name: PHPUnit configuration file run: xmllint --schema vendor/phpunit/phpunit/phpunit.xsd --noout phpunit.xml.dist @@ -88,7 +88,7 @@ jobs: COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Install dependencies - run: composer install --prefer-dist --no-progress + run: composer update --prefer-dist --no-progress - name: Coding Guideline run: ./vendor/bin/php-cs-fixer fix --dry-run --diff diff --git a/shell.nix b/shell.nix index 30cfa01..aa6cf9d 100644 --- a/shell.nix +++ b/shell.nix @@ -24,7 +24,7 @@ let composer ]; text = '' - composer install --prefer-dist --no-progress --working-dir="$PROJECT_ROOT" + composer update --prefer-dist --no-progress ''; }; projectCgl = pkgs.writeShellApplication {