Skip to content

Commit 49563a5

Browse files
committed
chore: remove unused code and typo
1 parent 430e279 commit 49563a5

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/pr-check.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -44,29 +44,25 @@ jobs:
4444
- name: Check go toolchain
4545
run: go version
4646

47-
- name: Run make format
47+
- name: Code format
4848
shell: bash
4949
run: |
5050
echo Home path is $HOME
5151
export WORKBASE=$HOME/go/src/infini.sh
5252
export WORK=$WORKBASE/$PNAME
5353
54-
# for test workspace
54+
# for format workspace
5555
mkdir -p $HOME/go/src/
5656
ln -s $GITHUB_WORKSPACE $WORKBASE
5757
5858
# check work folder
5959
ls -lrt $WORKBASE/
6060
ls -alrt $WORK
6161
62-
# for unit test
62+
# for code format
6363
cd $WORK
6464
echo Formating code at $PWD ...
6565
make format
66-
if [ $? -ne 0 ]; then
67-
echo "make format failed, please check make output"
68-
exit 1
69-
fi
7066
7167
- name: Check for changes after format
7268
id: check-changes
@@ -180,15 +176,15 @@ jobs:
180176
export WORKBASE=$HOME/go/src/infini.sh
181177
export WORK=$WORKBASE/$PNAME
182178
183-
# for test workspace
179+
# for lint workspace
184180
mkdir -p $HOME/go/src/
185181
ln -s $GITHUB_WORKSPACE $WORKBASE
186182
187183
# check work folder
188184
ls -lrt $WORKBASE/
189185
ls -alrt $WORK
190186
191-
# for unit test
187+
# for code lint
192188
cd $WORK
193189
echo Linting code at $PWD ...
194190
make lint

0 commit comments

Comments
 (0)