From 2ca2ae978ab0e0c5c23aad2ec59a91cf63e995a3 Mon Sep 17 00:00:00 2001 From: Constantine Zavezeon <31433211+Kwynto@users.noreply.github.com> Date: Sat, 22 Jul 2023 10:10:10 +0300 Subject: [PATCH] Testing and CodeCov badge --- .github/workflows/go.yml | 65 +--------------------------------------- README.md | 2 +- 2 files changed, 2 insertions(+), 65 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2d7e8a1..d7349df 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,7 +1,7 @@ # This workflow will build a golang project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go -name: Go +name: GoCoverage # The name of the workflow that will appear on Github on: push: @@ -31,66 +31,3 @@ jobs: uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - # - name: Coveralls GitHub Action - # uses: coverallsapp/github-action@v2 - -# name: Go # The name of the workflow that will appear on Github - -# on: -# push: -# branches: [ main ] -# pull_request: -# branches: [ main ] -# # Allows you to run this workflow manually from the Actions tab -# workflow_dispatch: - -# jobs: - -# build: -# runs-on: ${{ matrix.os }} -# strategy: -# matrix: -# os: [ubuntu-latest] -# # os: [ubuntu-latest, windows-latest] -# go: [1.18, 1.20] -# steps: -# # - uses: actions/checkout@v2 - -# - name: Coveralls GitHub Action -# uses: coverallsapp/github-action@v2 - - # - name: Set up Go - # uses: actions/setup-go@v2 - # with: - # go-version: ${{ matrix.go }} - - # - name: Build - # run: go install - - # - name: Test - # run: | - # go test -v -cover ./... -coverprofile coverage.out -coverpkg ./... - # go tool cover -func coverage.out -o coverage.out # Replaces coverage.out with the analysis of coverage.out - - # - name: Go Coverage Badge - # uses: tj-actions/coverage-badge-go@v1 - # if: ${{ runner.os == 'Linux' && matrix.go == '1.17' }} # Runs this on only one of the ci builds. - # with: - # green: 80 - # filename: coverage.out - - # - uses: stefanzweifel/git-auto-commit-action@v4 - # id: auto-commit-action - # with: - # commit_message: Apply Code Coverage Badge - # skip_fetch: true - # skip_checkout: true - # file_pattern: ./README.md - - # - name: Push Changes - # if: steps.auto-commit-action.outputs.changes_detected == 'true' - # uses: ad-m/github-push-action@master - # with: - # github_token: ${{ github.token }} - # branch: ${{ github.ref }} diff --git a/README.md b/README.md index e17bd0c..562f621 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A simple and fast implementation of LRU for caching with old data preemption and [![GoDoc](https://godoc.org/github.com/Kwynto/lru?status.svg)](https://godoc.org/github.com/Kwynto/lru) [![Go Report Card](https://goreportcard.com/badge/github.com/Kwynto/lru)](https://goreportcard.com/report/github.com/Kwynto/lru) [![GitHub](https://img.shields.io/github/license/Kwynto/lru)](https://github.com/Kwynto/lru/blob/master/LICENSE) - +[![codecov](https://codecov.io/gh/Kwynto/lru/branch/main/graph/badge.svg?token=E1XY0MNX5V)](https://codecov.io/gh/Kwynto/lru) **_This is the stable version._**