Skip to content

Commit d57bda7

Browse files
authored
Merge pull request #47 from Code-Hex/fix/tmp
fixed to use tmpfile
2 parents 79cf6ae + ea9b4bb commit d57bda7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,16 @@ jobs:
2828
make lint
2929
env:
3030
GO111MODULE: off
31+
- name: Declare some variables
32+
id: vars
33+
run: |
34+
echo "::set-output name=coverage_txt::${RUNNER_TEMP}/coverage.txt"
3135
- name: Test Coverage (pkg)
32-
run: go test ./... -coverprofile=coverage.txt
36+
run: go test ./... -coverprofile=${{ steps.vars.outputs.coverage_txt }}
3337
- name: Upload coverage
3438
uses: codecov/codecov-action@v2
3539
with:
36-
files: coverage.txt
40+
files: ${{ steps.vars.outputs.coverage_txt }}
3741
- name: Run GoReleaser
3842
if: contains(github.ref, 'tags/v')
3943
uses: goreleaser/goreleaser-action@v2

0 commit comments

Comments
 (0)