From f750ca594c5d1cf2e2f80a88372ab9b970481e0d Mon Sep 17 00:00:00 2001 From: yaozm Date: Thu, 16 Feb 2023 12:52:53 +0800 Subject: [PATCH] Update CI config files --- .github/workflows/psalm.yml | 7 ++++++- .github/workflows/tests.yml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 3c55c57..d7b7ef0 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -4,7 +4,9 @@ on: push: paths: - '**.php' + - '.github/workflows/psalm.yml' - 'psalm.xml.dist' + - 'psalm-baseline.xml' jobs: psalm: @@ -27,7 +29,10 @@ jobs: key: composer-${{ hashFiles('composer.lock') }} - name: Run composer install - run: composer install -n --prefer-dist + run: composer install --prefer-dist --ansi --no-interaction --no-scripts + + - name: Install global psalm + run: composer global require vimeo/psalm --prefer-dist --ansi --no-interaction --no-scripts - name: Run psalm run: composer psalm diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7879dec..a34ff63 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,7 +32,7 @@ jobs: coverage: xdebug - name: Install dependencies - run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction + run: composer update --${{ matrix.dependency-version }} --prefer-dist --ansi --no-interaction --no-scripts - name: Execute tests run: composer test-c