Skip to content

Commit d1bcc6a

Browse files
committed
ci: set working directory for goveralls action
1 parent b83ecb1 commit d1bcc6a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/integration.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,16 @@ jobs:
131131
132132
go tool covdata textfmt -i=covs -o cov.out
133133
sed -i 's|^/go/src|github.com/ctfer-io/romeo/webserver|' cov.out
134-
sed -i 's|^github.com/ctfer-io/romeo/||' cov.out
134+
sed -i 's|^github.com/ctfer-io/romeo/webserver/||' cov.out
135+
135136
cat cov.out
137+
pwd
138+
ls -al
136139
137140
- name: Upload coverage to Coveralls
138141
uses: shogo82148/actions-goveralls@e6875f831db61e6abffbd8df91a2eb6cd24b46c9 # v1.9.1
139142
with:
140-
path-to-profile: 'webserver/cov.out'
143+
# this needs to be where it can find a go.mod
144+
working-directory: ./webserver
145+
# this path-to-profile is relative to the working-directory
146+
path-to-profile: ./cov.out

0 commit comments

Comments
 (0)