Skip to content

Commit

Permalink
Fix Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
doekenorg committed Sep 2, 2024
1 parent 9259e44 commit 14c9acd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
restore-keys: |
${{ runner.os }}-build-${{ matrix.php-versions }}-
- name: Install dependencies
env:
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{secrets.COMPOSER_AUTH}}"} }'
if: steps.cache.outputs.cache-hit != 'true'
# We run `--no-scripts` to avoid using Strauss during unit tests
run: composer install --prefer-dist --no-progress --no-scripts
Expand All @@ -40,5 +42,8 @@ jobs:
- name: Run linter
run: composer run-script linter

- name: Run PHPStan
run: composer run-script analyse

- name: Run test suite
run: composer run-script test
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
],
"linter": "vendor/bin/phplint --no-cache",
"test": "vendor/bin/phpunit",
"analyse": "vendor/bin/phpstan",
"post-install-cmd": [
"composer dump-autoload -o"
],
Expand Down

0 comments on commit 14c9acd

Please sign in to comment.