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 e8eb91e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/setup-failure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -e
set +x

# 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
10 changes: 6 additions & 4 deletions .github/setup-results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ CONFIG="--verbose --configuration .github/phpunit-$DB.xml"
# Running PHPUnit tests
vendor/bin/phpunit ${CONFIG}

# 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
9 changes: 8 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,16 @@ 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:
files: .github/tmp/mydb.xml, /tmp/mydb.xml, ../tmp/mydb.xml, ../../tmp/mydb.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false
# END MySQL and MariaDB Job

# START Postgres Tests
Expand Down

0 comments on commit e8eb91e

Please sign in to comment.