Skip to content

Add CI build badge to README.md #3

Add CI build badge to README.md

Add CI build badge to README.md #3

Workflow file for this run

name: CI Build
on:
push:
branches: [ main, master, develop ]
pull_request:
branches: [ main, master, develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal
- name: Pack (verify packaging works)
run: dotnet pack src/R8.RedisHashMap.csproj --configuration Release --no-build --output ./nupkg
- name: Upload NuGet package artifact
uses: actions/upload-artifact@v4
with:
name: nuget-package
path: ./nupkg/*.nupkg
retention-days: 7