From 18eec8e09d2d81f479d283587ced9eaeda55aa38 Mon Sep 17 00:00:00 2001 From: Bernhard Schmitt Date: Wed, 16 Nov 2022 15:27:59 +0100 Subject: [PATCH] Properly initialize linter and properly call analyzer in CI --- .github/workflows/qa.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 72983af..94bcc45 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -16,6 +16,21 @@ jobs: extensions: mbstring, intl tools: phpcs + - name: Get composer cache directory + id: composercache + run: echo "::set-output name=dir::$(composer config cache-files-dir)" + + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ${{ steps.composercache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} + restore-keys: ${{ runner.os }}-composer- + + - name: Install composer dependencies + run: | + composer install + - name: Run PHP Code Sniffer run: | composer lint @@ -49,7 +64,7 @@ jobs: - name: Run phpstan run: | - composer analyze + composer analyse unit-tests: runs-on: ubuntu-20.04