File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
2424 CODECOV_FAIL_ON_ERROR : true
2525 CODECOV_FLAGS : flag1,flag2
26+ shellcheck :
27+ runs-on : macos-latest
28+ steps :
29+ - name : Checkout
30+ uses : actions/checkout@v4
31+ - name : Install shellcheck
32+ run : brew install shellcheck
33+ - name : Run shellcheck
34+ run : shellcheck dist/codecov.sh --severity=error
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- CC_WRAPPER_VERSION=" 0.0.28 "
2+ CC_WRAPPER_VERSION=" 0.0.29 "
33set +u
44say () {
55 echo -e " $1 "
66}
77exit_if_error () {
88 say " $r ==> $1 $x "
9- if [ $CC_FAIL_ON_ERROR = true ];
9+ if [ " $CC_FAIL_ON_ERROR " = true ];
1010 then
1111 say " $r Exiting...$x "
1212 exit 1;
8484 cc_url=" $cc_url /${CC_VERSION} "
8585 cc_url=" $cc_url /${cc_os} /${cc_filename} "
8686 say " $g ->$x Downloading $b ${cc_url} $x "
87- curl -Os $cc_url
87+ curl -Os " $cc_url "
8888 say " $g ==>$x Finishing downloading $b ${cc_os} :${CC_VERSION} $x "
8989 version_url=" https://cli.codecov.io/${cc_os} /${CC_VERSION} "
90- version=$( curl -s $version_url -H " Accept:application/json" | jq -r ' .version' )
90+ version=$( curl -s " $version_url " -H " Accept:application/json" | jq -r ' .version' )
9191 say " Version: $b$version$x "
9292 say " "
9393fi
123123cc_cli_args=()
124124cc_cli_args+=( $( k_arg AUTO_LOAD_PARAMS_FROM) $( v_arg AUTO_LOAD_PARAMS_FROM) )
125125cc_cli_args+=( $( k_arg ENTERPRISE_URL) $( v_arg ENTERPRISE_URL) )
126- if [ -n $CC_YML_PATH ]
126+ if [ -n " $CC_YML_PATH " ]
127127then
128128 cc_cli_args+=( " --codecov-yml-path" )
129129 cc_cli_args+=( " $CC_YML_PATH " )
Original file line number Diff line number Diff line change 3939 codecov_url=" $codecov_url /${CODECOV_VERSION} "
4040 codecov_url=" $codecov_url /${codecov_os} /${codecov_filename} "
4141 say " $g ->$x Downloading $b ${codecov_url} $x "
42- curl -Os $codecov_url
42+ curl -Os " $codecov_url "
4343 say " $g ==>$x Finishing downloading $b ${codecov_os} :${CODECOV_VERSION} $x "
4444
4545 version_url=" https://cli.codecov.io/${codecov_os} /${CODECOV_VERSION} "
46- version=$( curl -s $version_url -H " Accept:application/json" | jq -r ' .version' )
46+ version=$( curl -s " $version_url " -H " Accept:application/json" | jq -r ' .version' )
4747 say " Version: $b$version$x "
4848 say " "
4949fi
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ codecov_cli_args=()
44
55codecov_cli_args+=( $( k_arg AUTO_LOAD_PARAMS_FROM) $( v_arg AUTO_LOAD_PARAMS_FROM) )
66codecov_cli_args+=( $( k_arg ENTERPRISE_URL) $( v_arg ENTERPRISE_URL) )
7- if [ -n $CODECOV_YML_PATH ]
7+ if [ -n " $CODECOV_YML_PATH " ]
88then
99 codecov_cli_args+=( " --codecov-yml-path" )
1010 codecov_cli_args+=( " $CODECOV_YML_PATH " )
Original file line number Diff line number Diff line change 77
88exit_if_error () {
99 say " $r ==> $1 $x "
10- if [ $CODECOV_FAIL_ON_ERROR = true ];
10+ if [ " $CODECOV_FAIL_ON_ERROR " = true ];
1111 then
1212 say " $r Exiting...$x "
1313 exit 1;
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- CODECOV_WRAPPER_VERSION=" 0.0.28 "
2+ CODECOV_WRAPPER_VERSION=" 0.0.29 "
You can’t perform that action at this time.
0 commit comments