diff --git a/.github/wordlist.txt b/.github/wordlist.txt index cea8e35b..2fe5152e 100644 --- a/.github/wordlist.txt +++ b/.github/wordlist.txt @@ -11,4 +11,5 @@ TimeSeries NuGet cli dotnet -HSET \ No newline at end of file +HSET +codecov \ No newline at end of file diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 9637d62d..04255b2e 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -30,7 +30,15 @@ jobs: dotnet-version: ${{matrix.dotnet-version}} - name: run redis-stack-server docker run: docker run -p 6379:6379 -d redislabs/redismod:edge - - name: compile - run: dotnet build - - name: run tests - run: dotnet test + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true + - name: Test + run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover + - name: Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{secrets.CODECOV_TOKEN}} + verbose: true + diff --git a/README.md b/README.md index 53c77c26..e0deb3eb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ [![license](https://img.shields.io/github/license/redis/NRedisStack.svg)](https://raw.githubusercontent.com/redis/NRedisStack/master/LICENSE) [![.github/workflows/integration.yml](https://github.com/redis/NRedisStack/actions/workflows/integration.yml/badge.svg)](https://github.com/redis/NRedisStack/actions/workflows/integration.yml) [![pre-release](https://img.shields.io/github/v/release/redis/nredisstack?include_prereleases&label=prerelease)](https://github.com/redis/nredisstack/releases) +[![codecov](https://codecov.io/gh/redis/NRedisStack/branch/master/graph/badge.svg?token=4B0KCNK12D)](https://codecov.io/gh/redis/NRedisStack) # NRedisStack diff --git a/tests/NRedisStack.Tests/NRedisStack.Tests.csproj b/tests/NRedisStack.Tests/NRedisStack.Tests.csproj index 80674304..6e61a8a3 100644 --- a/tests/NRedisStack.Tests/NRedisStack.Tests.csproj +++ b/tests/NRedisStack.Tests/NRedisStack.Tests.csproj @@ -9,6 +9,14 @@ + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all +