File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 1616 permissions :
1717 contents : write
1818
19+
1920 steps :
2021
2122 # debug
4849 go mod tidy
4950 go build -o httping -ldflags "-X main.Version=${GITHUB_REF_NAME} -X main.BuiltBy=github-actions" main.go
5051 mv httping builds/
51- ls -lisa builds/
52+ ls -lisa builds
53+
54+ - name : go test
55+ id : test
56+ run : |
57+ go test -v
58+ cd ./cmd/httping/
59+ go test -v
5260
5361 - run : git version
5462 - run : git branch
5967 run : |
6068 currentTag=${GITHUB_REF_NAME}
6169 major_minor=$(echo "$currentTag" | cut -d'.' -f1-2)
62- patch=$currentTag
70+ patch=$(echo "$ currentTag" | cut -d'.' -f3)
6371 # avoid empty patch number
6472 [ -n "$patch" ] && ((patch--)) || patch=".x"
6573 previousTag="${major_minor}.${patch}"
8694 with :
8795 name : ${{ env.GITHUB_REF_NAME }}
8896 tag : ${{ env.GITHUB_REF_NAME }}
89- artifacts : ./cmd/hashy /builds/httping
97+ artifacts : ./cmd/httping /builds/httping
9098 bodyFile : " body.log"
9199 token : ${{ secrets.GITHUB_TOKEN }}
92100 removeArtifacts : true
93101 allowUpdates : " true"
102+
103+
You can’t perform that action at this time.
0 commit comments