Skip to content

Commit f320e85

Browse files
committed
fix: format error
1 parent 0c3bac9 commit f320e85

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

.github/workflows/pr-check.yml

+20
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@ jobs:
4747
- name: Run make format
4848
shell: bash
4949
run: |
50+
echo Home path is $HOME
51+
export WORKBASE=$HOME/go/src/infini.sh
52+
export WORK=$WORKBASE/$PNAME
53+
54+
# for test workspace
55+
mkdir -p $HOME/go/src/
56+
ln -s $GITHUB_WORKSPACE $WORKBASE
57+
58+
# check work folder
59+
ls -lrt $WORKBASE/
60+
ls -alrt $WORK
61+
62+
# for unit test
63+
cd $WORK
64+
echo Formating code at $PWD ...
5065
make format
5166
if [ $? -ne 0 ]; then
5267
echo "make format failed, please check make output"
@@ -57,6 +72,11 @@ jobs:
5772
id: check-changes
5873
shell: bash
5974
run: |
75+
export WORKBASE=$HOME/go/src/infini.sh
76+
export WORK=$WORKBASE/$PNAME
77+
78+
# for foramt check
79+
cd $WORK
6080
if [[ $(git status --porcelain | grep -c " M .*\.go$") -gt 0 ]]; then
6181
echo "go format detected formatting changes"
6282
echo "::set-output name=changes::true"

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ vendor
5050
trash
5151
*.so
5252
.public
53-
plugin/generated_plugins.go
53+
generated_*.go
54+
config/generated.go
55+
config/generat*.go
5456
config/*.tpl
5557
config/*.yml

config/generated.go

-10
This file was deleted.

0 commit comments

Comments
 (0)