From 296ccc34fcc39c3339d64e69f9594b5b983f76c1 Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Thu, 28 Nov 2024 19:51:03 +0900 Subject: [PATCH] config: abolish --- .github/workflows/coveritup.yml | 92 --------------------------------- .github/workflows/test.yml | 40 ++++++++++++++ README.md | 31 +---------- 3 files changed, 41 insertions(+), 122 deletions(-) delete mode 100644 .github/workflows/coveritup.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/coveritup.yml b/.github/workflows/coveritup.yml deleted file mode 100644 index 764b100..0000000 --- a/.github/workflows/coveritup.yml +++ /dev/null @@ -1,92 +0,0 @@ -on: - pull_request: - push: - tags-ignore: - - '**' - branches: - - '**' - -name: "Cover It Up" -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} -jobs: - coveritup: - strategy: - matrix: - go-version: [mod] - os: [ubuntu-latest] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - uses: kevincobain2000/action-gobrew@v2 - with: - version: ${{ matrix.go-version }} - - name: Setup Node.js ${{ matrix.node-versions }} - uses: actions/setup-node@v2 - with: - node-version: 20 - - - 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 - go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest - curl -sLk https://raw.githubusercontent.com/kevincobain2000/cover-totalizer/master/install.sh | sh - - - name: NPM Install - uses: kevincobain2000/action-coveritup@v2 - with: - type: npm-install-time - command: cd api/pkg/frontend; npm install - record: runtime - - - name: NPM Build - uses: kevincobain2000/action-coveritup@v2 - with: - type: npm-build-time - command: cd api/pkg/frontend; npm run build - record: runtime - - - run: go mod tidy - - name: Lint Errors - uses: kevincobain2000/action-coveritup@v2 - with: - type: go-lint-errors - command: golangci-lint run ./... | grep -c "\^" - - - name: Test - uses: kevincobain2000/action-coveritup@v2 - with: - type: go-test-run-time - command: go test -race -v ./... -count=1 -coverprofile=coverage.out - record: runtime - - - name: Test - uses: kevincobain2000/action-coveritup@v2 - with: - type: go-build-time - command: go build - record: runtime - - - name: Coverage - run: gocov convert coverage.out | gocov-xml > coverage.xml - - name: Coveritup - uses: kevincobain2000/action-coveritup@v2 - with: - type: coverage - command: ./cover-totalizer coverage.xml - - - name: Number of dependencies - uses: kevincobain2000/action-coveritup@v2 - with: - type: go-mod-dependencies - command: go list -m all|wc -l|awk '{$1=$1};1' - - - uses: kevincobain2000/action-coveritup@v2 - with: - pr_comment: true - - uses: kevincobain2000/action-coveritup@v2 - with: - pr_comment: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..00284f4 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,40 @@ +on: + pull_request: + push: + tags-ignore: + - '**' + branches: + - '**' + +name: "Test" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} +jobs: + coveritup: + strategy: + matrix: + go-version: [mod] + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: kevincobain2000/action-gobrew@v2 + with: + version: ${{ matrix.go-version }} + - name: Setup Node.js ${{ matrix.node-versions }} + uses: actions/setup-node@v2 + with: + node-version: 20 + + - name: Install Tools + run: | + go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest + curl -sLk https://raw.githubusercontent.com/kevincobain2000/cover-totalizer/master/install.sh | sh + + - run: cd api/pkg/frontend; npm install; npm run build + + + - run: go build + - run: go test -race -v ./... -count=1 + - run: golangci-lint run ./... diff --git a/README.md b/README.md index 2bb9b1b..d6818d3 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,6 @@

-

- - svg circle progress sample - -

svg circle progress sample @@ -34,30 +29,6 @@ **Beautiful:** Customizable to rounded corners, different colors, and caption options. ---- -## Reports from [coveritup](https://coveritup.app/readme?org=kevincobain2000&repo=go-progress-svg&branch=master) - -![go-build-time](https://coveritup.app/badge?org=kevincobain2000&repo=go-progress-svg&branch=master&type=go-build-time) -![coverage](https://coveritup.app/badge?org=kevincobain2000&repo=go-progress-svg&branch=master&type=coverage) - -![go-lint-errors](https://coveritup.app/badge?org=kevincobain2000&repo=go-progress-svg&branch=master&type=go-lint-errors) -![go-test-run-time](https://coveritup.app/badge?org=kevincobain2000&repo=go-progress-svg&branch=master&type=go-test-run-time) - -![npm-install-time](https://coveritup.app/badge?org=kevincobain2000&repo=go-progress-svg&branch=master&type=npm-install-time) -![npm-build-time](https://coveritup.app/badge?org=kevincobain2000&repo=go-progress-svg&branch=master&type=npm-build-time) - -![go-mod-dependencies](https://coveritup.app/badge?org=kevincobain2000&repo=go-progress-svg&branch=master&type=go-mod-dependencies) - -![go-lint-errors](https://coveritup.app/chart?org=kevincobain2000&repo=go-progress-svg&branch=master&type=go-lint-errors&theme=light&line=fill&width=150&height=150&output=svg&line=fill) -![go-test-run-time](https://coveritup.app/chart?org=kevincobain2000&repo=go-progress-svg&branch=master&type=go-test-run-time&theme=light&line=fill&width=150&height=150&output=svg&line=fill) -![go-build-time](https://coveritup.app/chart?org=kevincobain2000&repo=go-progress-svg&branch=master&type=go-build-time&theme=light&line=fill&width=150&height=150&output=svg&line=fill) -![coverage](https://coveritup.app/chart?org=kevincobain2000&repo=go-progress-svg&branch=master&type=coverage&theme=light&line=fill&width=150&height=150&output=svg&line=fill) -![go-mod-dependencies](https://coveritup.app/chart?org=kevincobain2000&repo=go-progress-svg&branch=master&type=go-mod-dependencies&theme=light&line=fill&width=150&height=150&output=svg&line=fill) - -![npm-install-time](https://coveritup.app/chart?org=kevincobain2000&repo=go-progress-svg&branch=master&type=npm-install-time&theme=light&line=fill&width=150&height=150&output=svg) -![npm-build-time](https://coveritup.app/chart?org=kevincobain2000&repo=go-progress-svg&branch=master&type=npm-build-time&theme=light&line=fill&width=150&height=150&output=svg) - - ## Usage @@ -153,4 +124,4 @@ func main() { ## CHANGE LOG -- v1.0.0 - initial release \ No newline at end of file +- **v1.0.0** - initial release \ No newline at end of file