Skip to content

Commit

Permalink
Properly initialize linter and properly call analyzer in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Schmitt committed Nov 16, 2022
1 parent 8cf3c9a commit 18eec8e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -49,7 +64,7 @@ jobs:
- name: Run phpstan
run: |
composer analyze
composer analyse
unit-tests:
runs-on: ubuntu-20.04
Expand Down

0 comments on commit 18eec8e

Please sign in to comment.