diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 666ca7b78..aa33374c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -196,43 +196,6 @@ jobs: with: # If you change this, make sure to also update scripts/golangci-lint-shim.sh version: v2.15.0 - upload-coverage: - # List all jobs that produce coverage files - needs: [unit-tests, integration-tests] - if: github.event.pull_request.head.repo.full_name == github.repository - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v7 - - - name: Setup Go - uses: actions/setup-go@v7 - with: - go-version: ${{ env.GO_VERSION }} - - - name: Download all coverage artifacts - uses: actions/download-artifact@v8 - with: - path: /tmp/code_coverage - - - name: Combine coverage files - run: | - # Find all directories in /tmp/code_coverage and create a comma-separated list - COVERAGE_DIRS=$(find /tmp/code_coverage -mindepth 1 -maxdepth 1 -type d -printf '/tmp/code_coverage/%f,' | sed 's/,$//') - echo "Coverage directories: $COVERAGE_DIRS" - # Run the combine command with the generated list - go tool covdata textfmt -i=$COVERAGE_DIRS -o coverage.out - echo "Combined coverage:" - go tool cover -func coverage.out | tail -1 | awk '{print $3}' - - - name: Upload to Codacy - run: | - CODACY_PROJECT_TOKEN="${CODACY_PROJECT_TOKEN}" \ - bash <(curl -Ls https://coverage.codacy.com/get.sh) report \ - --force-coverage-parser go -r coverage.out - - env: - CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} check-for-fixups: runs-on: ubuntu-latest if: github.ref != 'refs/heads/master' diff --git a/README.md b/README.md index 8e2bf8a46..c6e1c762d 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ A simple terminal UI for git commands
-[![GitHub Releases](https://img.shields.io/github/downloads/jesseduffield/lazygit/total)](https://github.com/jesseduffield/lazygit/releases) [![Go Report Card](https://goreportcard.com/badge/github.com/jesseduffield/lazygit)](https://goreportcard.com/report/github.com/jesseduffield/lazygit) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/f46416b715d74622895657935fcada21)](https://app.codacy.com/gh/jesseduffield/lazygit/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![Codacy Badge](https://app.codacy.com/project/badge/Coverage/f46416b715d74622895657935fcada21)](https://app.codacy.com/gh/jesseduffield/lazygit/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage) [![golangci-lint](https://img.shields.io/badge/linted%20by-golangci--lint-brightgreen)](https://golangci-lint.run/) [![GitHub tag](https://img.shields.io/github/v/tag/jesseduffield/lazygit?color=blue)](https://github.com/jesseduffield/lazygit/releases/latest) [![homebrew](https://img.shields.io/homebrew/v/lazygit?color=blue)](https://formulae.brew.sh/formula/lazygit) +[![GitHub Releases](https://img.shields.io/github/downloads/jesseduffield/lazygit/total)](https://github.com/jesseduffield/lazygit/releases) [![Go Report Card](https://goreportcard.com/badge/github.com/jesseduffield/lazygit)](https://goreportcard.com/report/github.com/jesseduffield/lazygit) [![golangci-lint](https://img.shields.io/badge/linted%20by-golangci--lint-brightgreen)](https://golangci-lint.run/) [![GitHub tag](https://img.shields.io/github/v/tag/jesseduffield/lazygit?color=blue)](https://github.com/jesseduffield/lazygit/releases/latest) [![homebrew](https://img.shields.io/homebrew/v/lazygit?color=blue)](https://formulae.brew.sh/formula/lazygit)