@@ -16,12 +16,12 @@ concurrency:
1616
1717env :
1818 # Cache params
19- CACHE_VERSION : 2022061903 # To be able to create a new cache (YYYYMMDDXX)
19+ CACHE_VERSION : 2022061905 # To be able to create a new cache (YYYYMMDDXX)
2020 COVERAGE_OUTPUT_STYLE : clover
2121 TEST_OUTPUT_STYLE : pretty
2222 COMPOSER_OPTIONS : --optimize-autoloader
23- CODACY_CACHE_PATH : $HOME /.cache/codacy
24- CODACY_BIN : $HOME /.cache/codacy/codacy.sh
23+ CODACY_CACHE_PATH : ~ /.cache/codacy
24+ CODACY_BIN : ~ /.cache/codacy/codacy.sh
2525
2626jobs :
2727 static-tests :
@@ -94,18 +94,18 @@ jobs:
9494 path : |
9595 ~/.composer
9696 ./vendor
97- $CODACY_CACHE_PATH
97+ ${{ env. CODACY_CACHE_PATH }}
9898 build/behat-code-coverage-cache
9999 # Clear the cache if composer json (as composer.lock is in the repo) has been updated
100100 key : ${{ env.CACHE_VERSION }}-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}-${{ hashFiles('composer.json') }}
101101
102102 - name : Download codacy binary
103103 if : steps.cache.outputs.cache-hit != 'true'
104104 run : |
105- mkdir -p $CODACY_CACHE_PATH \
106- && curl -LN https://coverage.codacy.com/get.sh -o $CODACY_BIN \
107- && chmod +x $CODACY_BIN \
108- && $CODACY_BIN download
105+ mkdir -p ${{ env. CODACY_CACHE_PATH }} \
106+ && curl -LN https://coverage.codacy.com/get.sh -o ${{ env. CODACY_BIN }} \
107+ && chmod +x ${{ env. CODACY_BIN }} \
108+ && ${{ env. CODACY_BIN }} download
109109
110110 - name : Build
111111 run : |
@@ -138,7 +138,7 @@ jobs:
138138 fail_ci_if_error : true
139139
140140 - name : Upload coverages to Codacy
141- run : $CODACY_BIN report -r build/coverage-phpunit/unit.clover -r build/coverage-behat/clover.xml -r build/coverage-phpunit/functional.clover -t ${{ secrets.CODACY_PROJECT_TOKEN }} --partial
141+ run : ${{ env. CODACY_BIN }} report -r build/coverage-phpunit/unit.clover -r build/coverage-behat/clover.xml -r build/coverage-phpunit/functional.clover -t ${{ secrets.CODACY_PROJECT_TOKEN }} --partial
142142
143143 finalize-codacy-coverage-report :
144144 runs-on : ubuntu-latest
@@ -150,19 +150,19 @@ jobs:
150150 uses : actions/cache@v2
151151 with :
152152 path : |
153- $CODACY_CACHE_PATH
154- key : ${{ env.CACHE_VERSION }}-codacy
153+ ${{ env. CODACY_CACHE_PATH }}
154+ key : ${{ env.CACHE_VERSION }}-codacy-final
155155
156156 - name : Download codacy binary
157157 if : steps.cache.outputs.cache-hit != 'true'
158158 run : |
159- mkdir -p $CODACY_CACHE_PATH \
160- && curl -LN https://coverage.codacy.com/get.sh -o $CODACY_BIN \
161- && chmod +x $CODACY_BIN \
162- && $CODACY_BIN download
159+ mkdir -p ${{ env. CODACY_CACHE_PATH }} \
160+ && curl -LN https://coverage.codacy.com/get.sh -o ${{ env. CODACY_BIN }} \
161+ && chmod +x ${{ env. CODACY_BIN }} \
162+ && ${{ env. CODACY_BIN }} download
163163
164164 - name : Finalize reporting
165- run : $CODACY_BIN final -t ${{ secrets.CODACY_PROJECT_TOKEN }}
165+ run : ${{ env. CODACY_BIN }} final -t ${{ secrets.CODACY_PROJECT_TOKEN }}
166166
167167 nightly-tests :
168168 name : Nightly - PHP ${{ matrix.php-version }} / Symfony ${{ matrix.symfony-version }}
@@ -200,7 +200,7 @@ jobs:
200200 path : |
201201 ~/.composer
202202 ./vendor
203- $CODACY_CACHE_PATH
203+ ${{ env. CODACY_CACHE_PATH }}
204204 build/behat-code-coverage-cache
205205 # Clear the cache if composer json (as composer.lock is in the repo) has been updated
206206 key : ${{ env.CACHE_VERSION }}-tests-${{ matrix.php-version }}-${{ matrix.symfony-version }}-${{ hashFiles('composer.json') }}
0 commit comments