Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
- "src/**"
- "test/**"
- "util/**"
- "dev/**"
- "Directory.Build.props"
- "Directory.Build.targets"
- "*.slnx"
- ".editorconfig"
pull_request:
branches:
- "main"
Expand All @@ -17,10 +22,20 @@ on:
- "src/**"
- "test/**"
- "util/**"
- "dev/**"
- "Directory.Build.props"
- "Directory.Build.targets"
- "*.slnx"
- ".editorconfig"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
actions: read
Expand All @@ -33,10 +48,12 @@ jobs:
- name: CargoWall
uses: code-cargo/cargowall-action@c0bd989036354f795a5150d478fce5bd510586af # v1.3.2-rc.3
- name: Checkout
uses: actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Setup dotnet
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
with:
cache: true
cache-dependency-path: '**/packages.linux-x64.lock.json'
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
name: NuGet
environment: nuget
runs-on: ubuntu-latest
timeout-minutes: 15

permissions:
contents: read
Expand All @@ -23,10 +24,12 @@ jobs:
steps:
- name: CargoWall
uses: code-cargo/cargowall-action@c0bd989036354f795a5150d478fce5bd510586af # v1.3.2-rc.3
- uses: actions/checkout@v7
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Setup dotnet
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
with:
cache: true
cache-dependency-path: '**/packages.linux-x64.lock.json'
Expand All @@ -49,7 +52,11 @@ jobs:
- name: Pack
run: dotnet pack -c Release -p:version=${GITHUB_REF#refs/*/v} -o ./publish

- name: Log in to NuGet.org with Trusted Publishing (OIDC)
uses: NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1.2.0
id: nuget-login
with:
user: CodeCargo

- name: Publish to NuGet.org
run: dotnet nuget push ./publish/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
env:
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
run: dotnet nuget push ./publish/*.nupkg --api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Overview

A .NET 8+ library for using NATS with `HybridCache` or as an `IDistributedCache` directly.
A .NET 8+ library (tested on .NET 8 and .NET 10) for using NATS with `HybridCache` or as an `IDistributedCache` directly.

## Requirements

Expand Down Expand Up @@ -123,5 +123,5 @@ await host.RunAsync();

## Additional Resources

* [ASP.NET Core Hybrid Cache Documentation](https://learn.microsoft.com/en-us/aspnet/core/performance/caching/hybrid?view=aspnetcore-9.0)
* [ASP.NET Core Hybrid Cache Documentation](https://learn.microsoft.com/en-us/aspnet/core/performance/caching/hybrid?view=aspnetcore-10.0)
* [NATS .NET Client Documentation](https://nats-io.github.io/nats.net/api/NATS.Client.Core.NatsOpts.html)
Loading