Skip to content

Commit 7282b6b

Browse files
authored
Simplify CI config (#1004)
1 parent 1a8a3d9 commit 7282b6b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
php-version: '8.4'
2323
extensions: none, curl, dom, json, mbstring, opcache, openssl, simplexml, tokenizer, xml, xmlwriter
2424
coverage: none
25-
- if: ${{ github.event_name != 'pull_request' }}
25+
- if: github.event_name != 'pull_request'
2626
run: rm ./.dev-tools/composer.lock
2727
- run: composer update --no-progress
2828
- run: composer analyse
@@ -100,20 +100,20 @@ jobs:
100100
path: ${{ steps.composer-cache.outputs.dir }}
101101
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
102102

103-
- if: ${{ matrix.with-bootstrap }}
103+
- if: matrix.with-bootstrap
104104
uses: sergeysova/jq-action@v2
105105
with:
106106
cmd: |
107107
jq -r --indent 4 'del(.autoload."psr-4")' composer.json > composer.tmp
108108
jq -r --indent 4 '.autoload += {"files": ["bootstrap.php"]}' composer.tmp > composer.json
109109
110-
- if: ${{ matrix.use-shim-package }}
110+
- if: matrix.use-shim-package
111111
run: sed -i 's#friendsofphp/php-cs-fixer#php-cs-fixer/shim#g' composer.json
112112

113-
- if: ${{ matrix.with-php-cs-fixer-from-master }}
113+
- if: matrix.with-php-cs-fixer-from-master
114114
run: composer require friendsofphp/php-cs-fixer:dev-master --no-update
115115

116-
- if: ${{ matrix.calculate-coverage }}
116+
- if: matrix.calculate-coverage
117117
run: composer require --dev php-coveralls/php-coveralls --no-update
118118

119119
- run: composer update --no-progress --classmap-authoritative ${{ matrix.composer-flags }}
@@ -124,13 +124,13 @@ jobs:
124124
env:
125125
FAST_LINT_TEST_CASES: ${{ matrix.FAST_LINT_TEST_CASES }}
126126

127-
- if: ${{ matrix.calculate-coverage }}
127+
- if: matrix.calculate-coverage
128128
env:
129129
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
130130
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
131131
run: ./vendor/bin/php-coveralls --verbose
132132

133-
- if: ${{ matrix.calculate-coverage }}
133+
- if: matrix.calculate-coverage
134134
env:
135135
FAST_LINT_TEST_CASES: 1
136136
run: composer infection

0 commit comments

Comments
 (0)