Skip to content

Commit 8166670

Browse files
committed
! try action
1 parent 862a83e commit 8166670

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

.github/phpunit-mariadb.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<directory suffix=".php">../sources/ext</directory>
3131
</exclude>
3232
<report>
33-
<clover outputFile="/tmp/madb.xml"/>
33+
<clover outputFile="/home/runner/work/Elkarte/Elkarte/elkarte/tmp/madb.xml"/>
3434
</report>
3535
</coverage>
3636

.github/setup-failure.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -e
88
set +x
99

1010
# Agents will merge all coverage data...
11-
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]
12-
then
13-
bash <(curl -s https://codecov.io/bash) -s "/tmp" -f '*.xml' -t "$CODECOV_TOKEN"
14-
fi
11+
#if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]
12+
#then
13+
# bash <(curl -s https://codecov.io/bash) -s "/tmp" -f '*.xml' -t "$CODECOV_TOKEN"
14+
#fi

.github/setup-results.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CONFIG="--verbose --configuration .github/phpunit-$DB.xml"
1212
vendor/bin/phpunit ${CONFIG}
1313

1414
# Agents will merge all coverage data...
15-
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]
16-
then
17-
bash <(curl -s https://codecov.io/bash) -s "/tmp" -f '*.xml' -t "$CODECOV_TOKEN"
18-
fi
15+
#if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]
16+
#then
17+
# bash <(curl -s https://codecov.io/bash) -s "/tmp" -f '*.xml' -t "$CODECOV_TOKEN"
18+
#fi

.github/workflows/tests.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,16 @@ jobs:
237237
env:
238238
DB: ${{steps.database-type.outputs.db}}
239239
PHP_VERSION: ${{ matrix.php }}
240-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
241240
run: .github/setup-results.sh
242241
working-directory: ./elkarte
242+
243+
- name: Send Coverage Reports
244+
if: ${{ github.event_name == 'pull_request' }}
245+
uses: codecov/codecov-action@v4
246+
with:
247+
files: /home/runner/work/Elkarte/Elkarte/elkarte/tmp/madb.xml
248+
token: ${{ secrets.CODECOV_TOKEN }}
249+
verbose: false
243250
# END MySQL and MariaDB Job
244251

245252
# START Postgres Tests

0 commit comments

Comments
 (0)