Skip to content

Commit 6512e24

Browse files
committed
ci: make coverage file output relative
1 parent 3a89b21 commit 6512e24

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

.github/workflows/integration.yaml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ jobs:
8787
8888
- name: Romeo install
8989
id: install
90-
uses: ctfer-io/romeo/install@8755682428f4923cc99008d0af6caf452582a62e
90+
uses: ctfer-io/romeo/install@3a89b21310f41f6ba13f037cc77b756552154405
9191
with:
9292
kubeconfig: ~/.kube/config
9393

9494
- name: Romeo environment
9595
id: env
96-
uses: ctfer-io/romeo/environment@8755682428f4923cc99008d0af6caf452582a62e
96+
uses: ctfer-io/romeo/environment@3a89b21310f41f6ba13f037cc77b756552154405
9797
with:
9898
stack-name: env
9999
registry: localhost:5000
@@ -105,7 +105,7 @@ jobs:
105105

106106
- name: Romeo environment under test
107107
id: env-test
108-
uses: ctfer-io/romeo/environment@8755682428f4923cc99008d0af6caf452582a62e
108+
uses: ctfer-io/romeo/environment@3a89b21310f41f6ba13f037cc77b756552154405
109109
with:
110110
stack-name: env-test
111111
registry: localhost:5000
@@ -120,20 +120,21 @@ jobs:
120120
run: |
121121
curl -v "${{ steps.server.outputs.server }}:${{ steps.env-test.outputs.port }}/api/v1/coverout"
122122
123-
# - name: Download results
124-
# run: |
125-
# cd webserver
126-
# mkdir covs
127-
# curl "${{ steps.server.outputs.server }}:${{ steps.env.outputs.port }}/api/v1/coverout" |
128-
# jq -r '.merged' |
129-
# base64 -d > covs/covs.zip
130-
# (cd covs && unzip covs.zip && rm covs.zip)
123+
- name: Download results
124+
run: |
125+
cd webserver
126+
mkdir covs
127+
curl "${{ steps.server.outputs.server }}:${{ steps.env.outputs.port }}/api/v1/coverout" |
128+
jq -r '.merged' |
129+
base64 -d > covs/covs.zip
130+
(cd covs && unzip covs.zip && rm covs.zip)
131131
132-
# go tool covdata textfmt -i=covs -o cov.out
133-
# sed -i 's|^/go/src|github.com/ctfer-io/romeo/webserver|' cov.out
134-
# cat cov.out
132+
go tool covdata textfmt -i=covs -o cov.out
133+
sed -i 's|^/go/src|github.com/ctfer-io/romeo/webserver|' cov.out
134+
sed "s|^github.com/ctfer-io/romeo/||" cover.out > cov.out
135+
cat cov.out
135136
136-
# - name: Upload coverage to Coveralls
137-
# uses: shogo82148/actions-goveralls@e6875f831db61e6abffbd8df91a2eb6cd24b46c9 # v1.9.1
138-
# with:
139-
# path-to-profile: 'cov.out'
137+
- name: Upload coverage to Coveralls
138+
uses: shogo82148/actions-goveralls@e6875f831db61e6abffbd8df91a2eb6cd24b46c9 # v1.9.1
139+
with:
140+
path-to-profile: 'cov.out'

0 commit comments

Comments
 (0)