Commit 49563a5 1 parent 430e279 commit 49563a5 Copy full SHA for 49563a5
File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -44,29 +44,25 @@ jobs:
44
44
- name : Check go toolchain
45
45
run : go version
46
46
47
- - name : Run make format
47
+ - name : Code format
48
48
shell : bash
49
49
run : |
50
50
echo Home path is $HOME
51
51
export WORKBASE=$HOME/go/src/infini.sh
52
52
export WORK=$WORKBASE/$PNAME
53
53
54
- # for test workspace
54
+ # for format workspace
55
55
mkdir -p $HOME/go/src/
56
56
ln -s $GITHUB_WORKSPACE $WORKBASE
57
57
58
58
# check work folder
59
59
ls -lrt $WORKBASE/
60
60
ls -alrt $WORK
61
61
62
- # for unit test
62
+ # for code format
63
63
cd $WORK
64
64
echo Formating code at $PWD ...
65
65
make format
66
- if [ $? -ne 0 ]; then
67
- echo "make format failed, please check make output"
68
- exit 1
69
- fi
70
66
71
67
- name : Check for changes after format
72
68
id : check-changes
@@ -180,15 +176,15 @@ jobs:
180
176
export WORKBASE=$HOME/go/src/infini.sh
181
177
export WORK=$WORKBASE/$PNAME
182
178
183
- # for test workspace
179
+ # for lint workspace
184
180
mkdir -p $HOME/go/src/
185
181
ln -s $GITHUB_WORKSPACE $WORKBASE
186
182
187
183
# check work folder
188
184
ls -lrt $WORKBASE/
189
185
ls -alrt $WORK
190
186
191
- # for unit test
187
+ # for code lint
192
188
cd $WORK
193
189
echo Linting code at $PWD ...
194
190
make lint
You can’t perform that action at this time.
0 commit comments