Skip to content

Commit

Permalink
Fixes broken workflow (#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Dec 4, 2022
1 parent 5f1f5dc commit 96682f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Validate composer
run: composer validate --strict

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,15 @@ jobs:
composer:
name: Composer
needs: [check]
if: |
needs.check.outputs.composer > 0 ||
needs.check.outputs.workflow > 0
# if: |
# needs.check.outputs.composer > 0 ||
# needs.check.outputs.workflow > 0
uses: ./.github/workflows/composer.yml

phpcs:
name: PHPCS
needs: [check, composer]
if: |
(needs.composer.result == 'success' || needs.composer.result == 'skipped') ||
needs.check.outputs.php > 0 ||
needs.check.outputs.phpcs > 0 ||
needs.check.outputs.composer > 0 ||
Expand All @@ -66,7 +65,6 @@ jobs:
name: PHP-CS-Fixer
needs: [check, composer]
if: |
(needs.composer.result == 'success' || needs.composer.result == 'skipped') ||
needs.check.outputs.php > 0 ||
needs.check.outputs.php-cs-fixer > 0 ||
needs.check.outputs.composer > 0 ||
Expand All @@ -77,7 +75,6 @@ jobs:
name: PHPStan
needs: [check, composer, phpcs, php-cs-fixer]
if: |
(needs.composer.result == 'success' || needs.composer.result == 'skipped') ||
needs.check.outputs.php > 0 ||
needs.check.outputs.phpstan > 0 ||
needs.check.outputs.composer > 0 ||
Expand Down

0 comments on commit 96682f7

Please sign in to comment.