From 74c3604601caf74d2c7e970800b4e0b2b61dd77b Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 1 Aug 2021 11:24:57 +0200 Subject: [PATCH] Install the development tools in the CI build the proper way - install all tools in one step instead of only one tool at a time - install the exact registered version instead of updating (which avoid version-dependent differences between CI and the local environment) - provide the fingerprints of the trusted GPG keys with which the PHARs are signed so that the faked pseudo-interactive "yes" confirmation is not needed anymore --- .github/workflows/ci.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 529d54b0..e8f20a56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,13 +91,10 @@ jobs: matrix: include: - command: sniffer - tool: phpcs php-version: 7.4 - command: fixer - tool: php-cs-fixer php-version: 7.4 - command: stan - tool: phpstan php-version: 7.4 steps: @@ -126,8 +123,7 @@ jobs: - name: Install development tools run: | - # These workarounds are needed until PHIVE can do installs in a non-interactive way - echo y | phive --no-progress update ${{ matrix.tool }}; + phive --no-progress install --trust-gpg-keys BBAB5DF0A0D6672989CF1869E82B2FB314E9906E,A972B9ABB95D0B760B51442231C7E470E2138192,D32680D5957DC7116BE29C14CF1A108D0E7AE720 - name: Run Command run: composer ci:php:${{ matrix.command }}