Skip to content

Commit 18eec8e

Browse files
author
Bernhard Schmitt
committed
Properly initialize linter and properly call analyzer in CI
1 parent 8cf3c9a commit 18eec8e

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/qa.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@ jobs:
1616
extensions: mbstring, intl
1717
tools: phpcs
1818

19+
- name: Get composer cache directory
20+
id: composercache
21+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
22+
23+
- name: Cache dependencies
24+
uses: actions/cache@v2
25+
with:
26+
path: ${{ steps.composercache.outputs.dir }}
27+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
28+
restore-keys: ${{ runner.os }}-composer-
29+
30+
- name: Install composer dependencies
31+
run: |
32+
composer install
33+
1934
- name: Run PHP Code Sniffer
2035
run: |
2136
composer lint
@@ -49,7 +64,7 @@ jobs:
4964
5065
- name: Run phpstan
5166
run: |
52-
composer analyze
67+
composer analyse
5368
5469
unit-tests:
5570
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)