Skip to content

Bump System.Runtime.Caching from 6.0.0 to 7.0.0 in /Nhea.Data.Repository.RedisRepository #8

Bump System.Runtime.Caching from 6.0.0 to 7.0.0 in /Nhea.Data.Repository.RedisRepository

Bump System.Runtime.Caching from 6.0.0 to 7.0.0 in /Nhea.Data.Repository.RedisRepository #8

name: .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore *.sln
- name: Instal sonarscanner
run: dotnet tool install --global dotnet-sonarscanner
- name: Sonarscanner begin
run: dotnet sonarscanner begin /o:"${{ secrets.SONAR_ORGANIZATION }}" /k:"${{ secrets.SONAR_PROJECT_KEY }}" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
- name: Build
run: dotnet build *.sln --no-restore --configuration Release
- name: Run tests
run: dotnet test */TestProject.csproj --configuration Release
- name: Sonarscanner end
run: dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"