From 69d7e2824613f4f9ad59ad69fc7cf60b5bddcd27 Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Mon, 25 Nov 2024 15:12:48 +0900 Subject: [PATCH] ci --- .github/workflows/coveritup.yml | 75 --------------------------------- README.md | 20 --------- 2 files changed, 95 deletions(-) delete mode 100644 .github/workflows/coveritup.yml diff --git a/.github/workflows/coveritup.yml b/.github/workflows/coveritup.yml deleted file mode 100644 index 41f4b10..0000000 --- a/.github/workflows/coveritup.yml +++ /dev/null @@ -1,75 +0,0 @@ -on: [push, pull_request] - -name: "Cover It Up" -jobs: - coveritup: - strategy: - matrix: - go-version: [latest] - os: [ubuntu-latest] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - uses: kevincobain2000/action-gobrew@v2 - with: - version: ${{ matrix.go-version }} - - - name: Install Tools - run: | - go install github.com/securego/gosec/v2/cmd/gosec@latest - go install github.com/axw/gocov/gocov@latest - go install github.com/AlekSi/gocov-xml@latest - curl -sLk https://raw.githubusercontent.com/kevincobain2000/cover-totalizer/master/install.sh | sh - - - name: Unit Test - uses: kevincobain2000/action-coveritup@v2 - with: - type: unit-test-run-time - command: go test -race -v ./... -count=1 -coverprofile=coverage.out - record: runtime - - name: Benchmark Test - uses: kevincobain2000/action-coveritup@v2 - with: - type: allocs-per-op - command: go test -count 1 -bench=. ./... -benchmem|grep allocs|awk '{ print $(--NF)}' - record: score - metric: alloc - - - name: Coverage - run: gocov convert coverage.out | gocov-xml > coverage.xml - - - name: Coverage Totalizer - uses: kevincobain2000/action-coveritup@v2 - with: - command: ./cover-totalizer coverage.xml - type: coverage - - - name: Build time - uses: kevincobain2000/action-coveritup@v2 - with: - type: build-time - command: go build -o main ./cmd/gobrew - record: runtime - - - name: Go Binary Size - uses: kevincobain2000/action-coveritup@v2 - with: - type: go-binary-size - command: du -sk main | awk '{print $1}' - - - name: Go Mod Dependencies - uses: kevincobain2000/action-coveritup@v2 - with: - type: go-mod-dependencies - command: go list -m all|wc -l|awk '{$1=$1};1' - - - name: Go Sec Issues - uses: kevincobain2000/action-coveritup@v2 - with: - type: go-sec-issues - command: gosec -no-fail --quiet ./...|grep Issues | tail -1 |awk '{print $3}' - - - name: PR Comment - uses: kevincobain2000/action-coveritup@v2 - with: - pr_comment: true diff --git a/README.md b/README.md index 07defe7..da1230e 100644 --- a/README.md +++ b/README.md @@ -19,27 +19,7 @@ **Colorful:** Colorful output. - -# Build Status - ![CI](https://github.com/kevincobain2000/gobrew/actions/workflows/build.yml/badge.svg) -![coverage](https://coveritup.app/badge?org=kevincobain2000&repo=gobrew&type=coverage&branch=master) -![build-time](https://coveritup.app/badge?org=kevincobain2000&repo=gobrew&type=build-time&branch=master) -![go-binary-size](https://coveritup.app/badge?org=kevincobain2000&repo=gobrew&type=go-binary-size&branch=master) -![unit-test-run-time](https://coveritup.app/badge?org=kevincobain2000&repo=gobrew&type=unit-test-run-time&branch=master) -![allocs-per-op](https://coveritup.app/badge?org=kevincobain2000&repo=gobrew&type=allocs-per-op&branch=master) - -![go-mod-dependencies](https://coveritup.app/badge?org=kevincobain2000&repo=gobrew&type=go-mod-dependencies&branch=master) -![go-sec-issues](https://coveritup.app/badge?org=kevincobain2000&repo=gobrew&type=go-sec-issues&branch=master) - -![coverage](https://coveritup.app/chart?org=kevincobain2000&repo=gobrew&type=coverage&branch=master&output=svg&width=160&height=160&line=fill) -![build-time](https://coveritup.app/chart?org=kevincobain2000&repo=gobrew&type=build-time&branch=master&output=svg&width=160&height=160) -![go-binary-size](https://coveritup.app/chart?org=kevincobain2000&repo=gobrew&type=go-binary-size&branch=master&output=svg&width=160&height=160&line=fill) -![go-mod-dependencies](https://coveritup.app/chart?org=kevincobain2000&repo=gobrew&type=go-mod-dependencies&branch=master&output=svg&width=160&height=160) -![go-sec-issues](https://coveritup.app/chart?org=kevincobain2000&repo=gobrew&type=go-sec-issues&branch=master&output=svg&width=160&height=160&line=fill) -![unit-test-run-time](https://coveritup.app/chart?org=kevincobain2000&repo=gobrew&type=unit-test-run-time&branch=master&output=svg&width=160&height=160) -![allocs-per-op](https://coveritup.app/chart?org=kevincobain2000&repo=gobrew&type=allocs-per-op&output=svg&width=160&height=160&branch=master) - ## Install or update