Skip to content

Commit fce22f1

Browse files
authored
feat: update install steps (#233)
* feat: update install steps * Update action.yml * Update action.yml * Update action.yml * Update test.yml * Update go.mod * Update action.yml * Update go.mod * Update action.yml * Update action.yml * Update test.yml
1 parent 36b4fee commit fce22f1

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
platform:
1818
- ubuntu-latest
1919
- windows-latest
20-
# - macos-latest
20+
- macos-latest
2121

2222
name: Test coverage-badge-go
2323
steps:
@@ -27,11 +27,11 @@ jobs:
2727
fetch-depth: 0
2828
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
2929

30-
- name: golangci-lint
31-
uses: reviewdog/action-golangci-lint@v2
32-
with:
33-
workdir: test
34-
go_version: "1.14.4"
30+
# - name: golangci-lint
31+
# uses: reviewdog/action-golangci-lint@v2
32+
# with:
33+
# workdir: test
34+
# go_version: "1.14.4"
3535

3636
- name: Setup go
3737
uses: actions/setup-go@v5

action.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@ runs:
6262
EXTRA_ARGS="${EXTRA_ARGS} -link=${{ inputs.link }}"
6363
fi
6464
65-
TEMP_DIR=$(mktemp -d)
66-
curl -sf https://gobinaries.com/github.com/AlexBeauchemin/gobadge@v0.3.0 | PREFIX=$TEMP_DIR sh
67-
$TEMP_DIR/gobadge -filename=${{ inputs.filename }} $EXTRA_ARGS
68-
rm -rf $TEMP_DIR
65+
go install github.com/AlexBeauchemin/gobadge@v0.4.0
66+
$(go env GOPATH)/bin/gobadge -filename=${{ inputs.filename }} $EXTRA_ARGS
6967
id: coverage-badge-go
7068
shell: bash
7169

test/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/tj-actions/coverage-badge-go/test
22

3-
go 1.14
3+
go 1.23

0 commit comments

Comments
 (0)