Merge branch 'codecov' into 'master'

ci: change to codecov binary instead of bash uploader

See merge request unboundsoftware/go-kafka!1
This commit was merged in pull request #1.
This commit is contained in:
2021-11-17 13:01:59 +00:00
+6 -8
View File
@@ -17,14 +17,14 @@
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
image: golang:1.15
image: golang:1.17
variables:
GOFLAGS: -mod=readonly
stages:
- deps
- test
- deps
- test
deps:
stage: deps
@@ -43,8 +43,6 @@ test:
- CGO_ENABLED=1 go test -mod=readonly -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=$(go list ./... | tr '\n' , | sed 's/,$//') ./...
- go tool cover -html=coverage.txt -o coverage.html
- go tool cover -func=coverage.txt
- bash <(curl -s https://codecov.io/bash)
artifacts:
paths:
- coverage.html
- coverage.txt
- curl -Os https://uploader.codecov.io/latest/linux/codecov
- chmod +x codecov
- ./codecov -t ${CODECOV_TOKEN}