Skip to content

Commit 2bf1307

Browse files
authored
Add Codecov (#46)
* Add Codecov * Add codecov to wordlist * change jedis to NRedisStack * Fix Codecov * fix token * codecov token * fix integration
1 parent 2ff8fce commit 2bf1307

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

.github/wordlist.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ TimeSeries
1111
NuGet
1212
cli
1313
dotnet
14-
HSET
14+
HSET
15+
codecov

.github/workflows/integration.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ jobs:
3030
dotnet-version: ${{matrix.dotnet-version}}
3131
- name: run redis-stack-server docker
3232
run: docker run -p 6379:6379 -d redislabs/redismod:edge
33-
- name: compile
34-
run: dotnet build
35-
- name: run tests
36-
run: dotnet test
33+
- name: Restore dependencies
34+
run: dotnet restore
35+
- name: Build
36+
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true
37+
- name: Test
38+
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
39+
- name: Codecov
40+
uses: codecov/codecov-action@v3
41+
with:
42+
token: ${{secrets.CODECOV_TOKEN}}
43+
verbose: true
44+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[![license](https://img.shields.io/github/license/redis/NRedisStack.svg)](https://raw.githubusercontent.com/redis/NRedisStack/master/LICENSE)
22
[![.github/workflows/integration.yml](https://github.com/redis/NRedisStack/actions/workflows/integration.yml/badge.svg)](https://github.com/redis/NRedisStack/actions/workflows/integration.yml)
33
[![pre-release](https://img.shields.io/github/v/release/redis/nredisstack?include_prereleases&label=prerelease)](https://github.com/redis/nredisstack/releases)
4+
[![codecov](https://codecov.io/gh/redis/NRedisStack/branch/master/graph/badge.svg?token=4B0KCNK12D)](https://codecov.io/gh/redis/NRedisStack)
45

56

67
# NRedisStack

tests/NRedisStack.Tests/NRedisStack.Tests.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12+
<PackageReference Include="coverlet.collector" Version="3.2.0">
13+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
14+
<PrivateAssets>all</PrivateAssets>
15+
</PackageReference>
16+
<PackageReference Include="coverlet.msbuild" Version="3.2.0">
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18+
<PrivateAssets>all</PrivateAssets>
19+
</PackageReference>
1220
<PackageReference Include="Moq" Version="4.18.1" />
1321
<PackageReference Include="coverlet.collector" Version="3.1.2" />
1422
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />

0 commit comments

Comments
 (0)