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 '