Skip to content

Commit

Permalink
! try action
Browse files Browse the repository at this point in the history
  • Loading branch information
Spuds committed Apr 15, 2024
1 parent 862a83e commit 511bc67
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/phpunit-mariadb.xml
Expand Up @@ -30,7 +30,7 @@
<directory suffix=".php">../sources/ext</directory>
</exclude>
<report>
<clover outputFile="/tmp/madb.xml"/>
<clover outputFile="madb.xml"/>
</report>
</coverage>

Expand Down
11 changes: 7 additions & 4 deletions .github/setup-failure.sh
Expand Up @@ -7,8 +7,11 @@
set -e
set +x

sudo PWD
sudo find / -name mydb.xml

# Agents will merge all coverage data...
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]
then
bash <(curl -s https://codecov.io/bash) -s "/tmp" -f '*.xml' -t "$CODECOV_TOKEN"
fi
#if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]
#then
# bash <(curl -s https://codecov.io/bash) -s "/tmp" -f '*.xml' -t "$CODECOV_TOKEN"
#fi
8 changes: 4 additions & 4 deletions .github/setup-results.sh
Expand Up @@ -12,7 +12,7 @@ CONFIG="--verbose --configuration .github/phpunit-$DB.xml"
vendor/bin/phpunit ${CONFIG}

# Agents will merge all coverage data...
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]
then
bash <(curl -s https://codecov.io/bash) -s "/tmp" -f '*.xml' -t "$CODECOV_TOKEN"
fi
#if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]
#then
# bash <(curl -s https://codecov.io/bash) -s "/tmp" -f '*.xml' -t "$CODECOV_TOKEN"
#fi
8 changes: 7 additions & 1 deletion .github/workflows/tests.yaml
Expand Up @@ -237,9 +237,15 @@ jobs:
env:
DB: ${{steps.database-type.outputs.db}}
PHP_VERSION: ${{ matrix.php }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: .github/setup-results.sh
working-directory: ./elkarte

- name: Send Coverage Reports
if: ${{ github.event_name == 'pull_request' }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false
# END MySQL and MariaDB Job

# START Postgres Tests
Expand Down

0 comments on commit 511bc67

Please sign in to comment.