Skip to content

Commit

Permalink
Testing and CodeCov badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwynto committed Jul 22, 2023
1 parent c3ebf6f commit 2ca2ae9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 65 deletions.
65 changes: 1 addition & 64 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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._**

Expand Down

0 comments on commit 2ca2ae9

Please sign in to comment.