Skip to content

Commit 2d12c99

Browse files
chore: use goveralls token variable
1 parent bcfa032 commit 2d12c99

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/pull.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,12 @@ jobs:
153153
set -o pipefail
154154
./ext-tools/go-acc ./... --covermode=atomic --ignore test,immuclient,immuadmin,helper,fs,cmdtest,sservice,version,tools,webconsole,protomodel,schema,swagger --tags minio || true
155155
cat coverage.txt | grep -v "test" | grep -v "schema" | grep -v "protomodel" | grep -v "swagger" | grep -v "webserver.go" | grep -v "immuclient" | grep -v "immuadmin" | grep -v "helper" | grep -v "fs" | grep -v "cmdtest" | grep -v "sservice" | grep -v "version" | grep -v "tools" | grep -v "webconsole" > coverage.out
156-
./ext-tools/goveralls -coverprofile=coverage.out -service=gh-ci -repotoken ${{ secrets.COVERALLS_TOKEN }}
156+
./ext-tools/goveralls -coverprofile=coverage.out -service=gh-ci -repotoken "$SECRET_TOKEN"
157157
158158
# Stop minio
159159
docker rm -f minio
160+
env:
161+
SECRET_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
160162
- name: Analyze with SonarCloud
161163
uses: sonarsource/sonarcloud-github-action@master
162164
env:

.github/workflows/push.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,12 @@ jobs:
320320
set -o pipefail
321321
./ext-tools/go-acc ./... --covermode=atomic --ignore test,immuclient,immuadmin,helper,fs,cmdtest,sservice,version,tools,webconsole,protomodel,schema,swagger --tags minio || true
322322
cat coverage.txt | grep -v "test" | grep -v "schema" | grep -v "protomodel" | grep -v "swagger" | grep -v "webserver.go" | grep -v "immuclient" | grep -v "immuadmin" | grep -v "helper" | grep -v "fs" | grep -v "cmdtest" | grep -v "sservice" | grep -v "version" | grep -v "tools" | grep -v "webconsole" > coverage.out
323-
./ext-tools/goveralls -coverprofile=coverage.out -service=gh-ci -repotoken ${{ secrets.COVERALLS_TOKEN }}
323+
./ext-tools/goveralls -coverprofile=coverage.out -service=gh-ci -repotoken "$SECRET_TOKEN"
324324
325325
# Stop minio
326326
docker rm -f minio
327+
env:
328+
SECRET_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
327329
- name: Analyze with SonarCloud
328330
uses: sonarsource/sonarcloud-github-action@master
329331
env:

ext-tools/goveralls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env bash
22

3-
go run github.com/mattn/goveralls "$@"
3+
go run github.com/mattn/goveralls "$@"

0 commit comments

Comments
 (0)