Skip to content

Commit e363f2d

Browse files
t0mmylamlockwobr
authored andcommitted
fix(ci): coveralls token error (#130)
1 parent 1941665 commit e363f2d

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.github/workflows/operator-ci.yaml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -124,21 +124,11 @@ jobs:
124124
# Upload coverage to Coveralls using goveralls (Go-specific tool)
125125
- name: Upload coverage to Coveralls
126126
if: matrix.test-suite == 'e2e' && matrix.k8s-version == '1.34.0'
127-
env:
128-
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
129-
run: |
130-
# Install goveralls
131-
go install github.com/mattn/goveralls@latest
132-
# Run goveralls from operator directory (where go.mod is located)
133-
cd operator
134-
# Verify coverage file exists
135-
if [ ! -f reporting/cover.out ]; then
136-
echo "ERROR: Coverage file not found at reporting/cover.out"
137-
ls -la reporting/ || echo "reporting directory does not exist"
138-
exit 1
139-
fi
140-
# Upload coverage (run from operator/ directory, path is relative to operator/)
141-
goveralls -coverprofile=reporting/cover.out -service=github -repotoken=$COVERALLS_TOKEN
127+
uses: coverallsapp/github-action@v2
128+
with:
129+
github-token: ${{ secrets.GITHUB_TOKEN }}
130+
file: operator/reporting/cover.out
131+
format: golang
142132

143133
# Build multi-platform container image and push to registry
144134
build-and-push-operator:

0 commit comments

Comments
 (0)