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