Commit f320e85 1 parent 0c3bac9 commit f320e85 Copy full SHA for f320e85
File tree 3 files changed +23
-11
lines changed
3 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 47
47
- name : Run make format
48
48
shell : bash
49
49
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 ...
50
65
make format
51
66
if [ $? -ne 0 ]; then
52
67
echo "make format failed, please check make output"
57
72
id : check-changes
58
73
shell : bash
59
74
run : |
75
+ export WORKBASE=$HOME/go/src/infini.sh
76
+ export WORK=$WORKBASE/$PNAME
77
+
78
+ # for foramt check
79
+ cd $WORK
60
80
if [[ $(git status --porcelain | grep -c " M .*\.go$") -gt 0 ]]; then
61
81
echo "go format detected formatting changes"
62
82
echo "::set-output name=changes::true"
Original file line number Diff line number Diff line change 50
50
trash
51
51
* .so
52
52
.public
53
- plugin /generated_plugins.go
53
+ generated_ * .go
54
+ config /generated.go
55
+ config /generat * .go
54
56
config /* .tpl
55
57
config /* .yml
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments