@@ -86,28 +86,35 @@ jobs:
8686 --enable_charts 'yes' \
8787 --skip_url_validation 'yes'
8888
89+ - name : Restore result cache
90+ uses : actions/cache/restore@v4
91+ with :
92+ path : .phpunit.result.cache
93+ key : phpunit-result-cache-${{ matrix.php-versions }}-${{ matrix.mysql-version }}-${{ github.run_id }}
94+ restore-keys : |
95+ phpunit-result-cache-
96+
8997 - name : Run phpUnit
9098 run : php vendor/bin/phpunit --configuration .phpunit.dist.xml
9199
100+ - name : Save result cache
101+ uses : actions/cache/save@v4
102+ if : always()
103+ with :
104+ path : .phpunit.result.cache
105+ key : phpunit-result-cache-${{ matrix.php-versions }}-${{ matrix.mysql-version }}-${{ github.run_id }}
106+
92107 - name : Publish Unit Test Results
93108 uses : EnricoMi/publish-unit-test-result-action@v2
94109 if : always()
95110 with :
96111 github_token : ${{ secrets.GITHUB_TOKEN }}
97112 files : tests/logging/*.xml
98113
99- - name : prepare SonarCloud Scan Data
100- if : ${{ (matrix.php-versions == '7.4') && (matrix.mysql-version == '5.7') }}
101- run : |
102- head tests/coverage/clover.xml
103- sed -i 's@'$GITHUB_WORKSPACE'/@/github/workspace/@g' tests/logging/junit.xml
104- sed -i 's@'$GITHUB_WORKSPACE'/@/github/workspace/@g' tests/coverage/clover.xml
105- head ./tests/coverage/clover.xml
106-
107114 - name : SonarCloud Scan
108115 uses : SonarSource/sonarcloud-github-action@master
109116 continue-on-error : true
110- if : ${{ (matrix.php-versions == '7.4 ') && (matrix.mysql-version == '5.7') }} && SONAR_TOKEN
117+ if : ${{ (matrix.php-versions == '8.1 ') && (matrix.mysql-version == '5.7') }} && SONAR_TOKEN
111118 with :
112119 args : >
113120 -Dproject.settings=tests/sonar-project.properties
0 commit comments