From 4ac1665a7c4cf7a61c6e0a141aac89b2e3e886c1 Mon Sep 17 00:00:00 2001 From: Teuton Roy Date: Sun, 24 May 2026 19:05:25 +0530 Subject: [PATCH] Add packaging recipe for gocover-cobertura v1.5.0 --- gocover-cobertura.yaml | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 gocover-cobertura.yaml diff --git a/gocover-cobertura.yaml b/gocover-cobertura.yaml new file mode 100644 index 000000000000..dede2d836b0e --- /dev/null +++ b/gocover-cobertura.yaml @@ -0,0 +1,50 @@ + +package: + name: gocover-cobertura + version: 1.5.0 + epoch: 0 + description: Convert Go coverage output to Cobertura XML + copyright: + - license: MIT + +environment: + contents: + packages: + - build-base + - busybox + - ca-certificates-bundle + - go + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/boumenot/gocover-cobertura + tag: v${{package.version}} + expected-commit: c2c97ec3828f70c829e4a88ef62310f66d2dd5bb + + - uses: go/build + with: + packages: . + output: gocover-cobertura + + - uses: strip + +test: + environment: + contents: + packages: + - go + pipeline: + - runs: | + cat > sample.out <<'OUT' + mode: set + github.com/example/project/main.go:3.10,5.2 1 1 + OUT + gocover-cobertura < sample.out > coverage.xml + grep -q '