File tree Expand file tree Collapse file tree 7 files changed +19
-10
lines changed Expand file tree Collapse file tree 7 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 23
23
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
24
24
CODECOV_FAIL_ON_ERROR : true
25
25
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 1
1
#! /usr/bin/env bash
2
- CC_WRAPPER_VERSION=" 0.0.28 "
2
+ CC_WRAPPER_VERSION=" 0.0.29 "
3
3
set +u
4
4
say () {
5
5
echo -e " $1 "
6
6
}
7
7
exit_if_error () {
8
8
say " $r ==> $1 $x "
9
- if [ $CC_FAIL_ON_ERROR = true ];
9
+ if [ " $CC_FAIL_ON_ERROR " = true ];
10
10
then
11
11
say " $r Exiting...$x "
12
12
exit 1;
84
84
cc_url=" $cc_url /${CC_VERSION} "
85
85
cc_url=" $cc_url /${cc_os} /${cc_filename} "
86
86
say " $g ->$x Downloading $b ${cc_url} $x "
87
- curl -Os $cc_url
87
+ curl -Os " $cc_url "
88
88
say " $g ==>$x Finishing downloading $b ${cc_os} :${CC_VERSION} $x "
89
89
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' )
91
91
say " Version: $b$version$x "
92
92
say " "
93
93
fi
123
123
cc_cli_args=()
124
124
cc_cli_args+=( $( k_arg AUTO_LOAD_PARAMS_FROM) $( v_arg AUTO_LOAD_PARAMS_FROM) )
125
125
cc_cli_args+=( $( k_arg ENTERPRISE_URL) $( v_arg ENTERPRISE_URL) )
126
- if [ -n $CC_YML_PATH ]
126
+ if [ -n " $CC_YML_PATH " ]
127
127
then
128
128
cc_cli_args+=( " --codecov-yml-path" )
129
129
cc_cli_args+=( " $CC_YML_PATH " )
Original file line number Diff line number Diff line change 39
39
codecov_url=" $codecov_url /${CODECOV_VERSION} "
40
40
codecov_url=" $codecov_url /${codecov_os} /${codecov_filename} "
41
41
say " $g ->$x Downloading $b ${codecov_url} $x "
42
- curl -Os $codecov_url
42
+ curl -Os " $codecov_url "
43
43
say " $g ==>$x Finishing downloading $b ${codecov_os} :${CODECOV_VERSION} $x "
44
44
45
45
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' )
47
47
say " Version: $b$version$x "
48
48
say " "
49
49
fi
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ codecov_cli_args=()
4
4
5
5
codecov_cli_args+=( $( k_arg AUTO_LOAD_PARAMS_FROM) $( v_arg AUTO_LOAD_PARAMS_FROM) )
6
6
codecov_cli_args+=( $( k_arg ENTERPRISE_URL) $( v_arg ENTERPRISE_URL) )
7
- if [ -n $CODECOV_YML_PATH ]
7
+ if [ -n " $CODECOV_YML_PATH " ]
8
8
then
9
9
codecov_cli_args+=( " --codecov-yml-path" )
10
10
codecov_cli_args+=( " $CODECOV_YML_PATH " )
Original file line number Diff line number Diff line change 7
7
8
8
exit_if_error () {
9
9
say " $r ==> $1 $x "
10
- if [ $CODECOV_FAIL_ON_ERROR = true ];
10
+ if [ " $CODECOV_FAIL_ON_ERROR " = true ];
11
11
then
12
12
say " $r Exiting...$x "
13
13
exit 1;
Original file line number Diff line number Diff line change 1
1
#! /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