Skip to content

Commit

Permalink
Merge pull request #5 from Eclalang/issue-#4-add-codecov
Browse files Browse the repository at this point in the history
Issue #4 add codecov and update readme
  • Loading branch information
tot0p authored Feb 26, 2024
2 parents dd4fb28 + 84fb6a9 commit cb4486e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test and coverage

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Run coverage
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Eclalang/hash
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Hash library

[![Go Report Card](https://goreportcard.com/badge/github.com/Eclalang/hash)](https://goreportcard.com/report/github.com/Eclalang/hash)
[![codecov](https://codecov.io/gh/Eclalang/hash/graph/badge.svg?token=YNCIYERVBO)](https://codecov.io/gh/Eclalang/hash)

## Candidate functions :

| Func Name | Prototype | Description | Comments |
Expand Down

0 comments on commit cb4486e

Please sign in to comment.