From 457c74a6cd381da19938d9c9a266139037306b04 Mon Sep 17 00:00:00 2001 From: BoxBoxJason Date: Fri, 16 May 2025 18:11:52 +0200 Subject: [PATCH] docs: add badges --- .github/workflows/go.yml | 8 +++++--- README.md | 11 +++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c2f531f..6854db9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -51,6 +51,8 @@ jobs: with: go-version: "1.24.2" - run: go mod tidy - - name: go-test - run: | - go test -v ./... + - run: go install gotest.tools/gotestsum@latest + - run: gotestsum --junitfile unit-tests.xml -- -coverprofile=coverage.out -covermode=atomic ./... + - uses: codecov/codecov-action@v5 + with: + files: coverage.out diff --git a/README.md b/README.md index f425cfb..41eabcc 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,17 @@ ![gitlab-sync logo](./assets/gitlab-sync.png) +[![Coverage](https://codecov.io/gh/boxboxjason/gitlab-sync/branch/main/graph/badge.svg)](https://codecov.io/gh/boxboxjason/gitlab-sync) +![Go Version](https://img.shields.io/github/go-mod/go-version/boxboxjason/gitlab-sync) +[![Latest Release](https://img.shields.io/github/v/release/boxboxjason/gitlab-sync)](https://github.com/boxboxjason/gitlab-sync/releases) +[![Release Workflow](https://github.com/boxboxjason/gitlab-sync/actions/workflows/release.yml/badge.svg)](https://github.com/boxboxjason/gitlab-sync/actions/workflows/release.yml) +![Last Commit](https://img.shields.io/github/last-commit/boxboxjason/gitlab-sync) +[![Tests](https://github.com/boxboxjason/gitlab-sync/actions/workflows/go.yml/badge.svg)](https://github.com/boxboxjason/gitlab-sync/actions/workflows/go.yml) +![Stars](https://img.shields.io/github/stars/boxboxjason/gitlab-sync) +![Contributors](https://img.shields.io/github/contributors/boxboxjason/gitlab-sync?style=social) +![Issues](https://img.shields.io/github/issues/boxboxjason/gitlab-sync) +![Pull Requests](https://img.shields.io/github/issues-pr/boxboxjason/gitlab-sync) + (golang) CLI tool to synchronize GitLab projects and groups between two GitLab instances. It is designed to be used in a CI/CD pipeline to automate the process of keeping two GitLab instances in sync.