File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1616 - name : Set up Go
1717 uses : actions/setup-go@v3
1818 with :
19- go-version : 1.19.1
19+ go-version : 1.24.x
2020
2121 - name : Get coverage tool
2222 run : |
2727 BRANCH_NAME="${PATHS[1]}_${PATHS[2]}"
2828 echo $BRANCH_NAME
2929 echo "BRANCH=$(echo ${BRANCH_NAME})" >> $GITHUB_ENV
30-
30+
3131 - name : Create failing badge
3232 uses : schneegans/dynamic-badges-action@v1.0.0
3333 with :
@@ -44,14 +44,14 @@ jobs:
4444 cd application/backend
4545 go test ./... -coverprofile cover.out
4646 go tool cover -func cover.out > covered.txt
47-
47+
4848 - name : Get coverage
4949 run : |
5050 cd application/backend
5151 for word in $(cat covered.txt); do total_percent=$word; done
5252 echo $total_percent
5353 echo "COVERAGE=$total_percent" >> $GITHUB_ENV
54-
54+
5555 - name : Create passing badge
5656 uses : schneegans/dynamic-badges-action@v1.0.0
5757 if : ${{ env.COVERAGE!=null }}
6363 message : Passed
6464 color : green
6565 namedLogo : checkmarx
66-
66+
6767 - name : Create coverage badge
6868 uses : schneegans/dynamic-badges-action@v1.0.0
6969 if : ${{ env.COVERAGE!=null }}
You can’t perform that action at this time.
0 commit comments