Commit 273d9e9 1 parent 15d5129 commit 273d9e9 Copy full SHA for 273d9e9
File tree 3 files changed +14
-5
lines changed
3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 8
8
# Passed params
9
9
DB=$1
10
10
PHP_VERSION=$2
11
+ CODECOV_TOKEN=$3
11
12
12
13
# Build a config string for PHPUnit
13
14
CONFIG=" --verbose --configuration .github/phpunit-${DB} .xml"
@@ -18,5 +19,5 @@ vendor/bin/phpunit ${CONFIG}
18
19
# Agents will merge all coverage data...
19
20
if [[ " ${GITHUB_EVENT_NAME} " == " pull_request" ]]
20
21
then
21
- bash <( curl -s https://codecov.io/bash) -s " /tmp" -f ' *.xml'
22
+ bash <( curl -s https://codecov.io/bash) -s " /tmp" -f ' *.xml' -t " ${CODECOV_TOKEN} "
22
23
fi
Original file line number Diff line number Diff line change 6
6
set -e
7
7
set -x
8
8
9
+ # Passed params
10
+ DB=$1
11
+ PHP_VERSION=$2
12
+ CODECOV_TOKEN=$3
13
+
9
14
# Per actions in the tests.yaml file
10
15
#
11
16
# Current Versions for Ref
42
47
# Agents will merge all coverage data...
43
48
if [[ " ${GITHUB_EVENT_NAME} " == " pull_request" ]]
44
49
then
45
- bash <( curl -s https://codecov.io/bash) -s " /tmp" -f ' *.clover '
50
+ bash <( curl -s https://codecov.io/bash) -s " /tmp" -f ' *.xml ' -t " ${CODECOV_TOKEN} "
46
51
fi
47
52
fi
Original file line number Diff line number Diff line change 96
96
env :
97
97
DB : ${{ matrix.db }}
98
98
PHP_VERSION : ${{ matrix.php }}
99
- run : .github/setup-selenium.sh $DB $PHP_VERSION
99
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
100
+ run : .github/setup-selenium.sh $DB $PHP_VERSION $CODECOV_TOKEN
100
101
working-directory : ./elkarte
101
102
continue-on-error : true
102
103
@@ -244,7 +245,8 @@ jobs:
244
245
env :
245
246
DB : ${{steps.database-type.outputs.db}}
246
247
PHP_VERSION : ${{ matrix.php }}
247
- run : .github/setup-results.sh $DB $PHP_VERSION
248
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
249
+ run : .github/setup-results.sh $DB $PHP_VERSION $CODECOV_TOKEN
248
250
working-directory : ./elkarte
249
251
# END MySQL and MariaDB Job
250
252
@@ -323,6 +325,7 @@ jobs:
323
325
env :
324
326
DB : ${{steps.database-type.outputs.db}}
325
327
PHP_VERSION : ${{ matrix.php }}
326
- run : .github/setup-results.sh $DB $PHP_VERSION
328
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
329
+ run : .github/setup-results.sh $DB $PHP_VERSION $CODECOV_TOKEN
327
330
working-directory : ./elkarte
328
331
# END Postgres Job
You can’t perform that action at this time.
0 commit comments