Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
dotfelixb committed Oct 25, 2023
1 parent 992a942 commit 51d04ea
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
# Build and Release NQuery

name: .NET

Expand All @@ -11,9 +10,15 @@ on:

jobs:
build:

name: Build
runs-on: ubuntu-latest

services:
redis:
image: redis
ports:
- 6379:6379

steps:
- uses: actions/checkout@v3
- name: Setup .NET
Expand All @@ -26,3 +31,10 @@ jobs:
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Pack
run: dotnet pack --version-suffix alpha`date +%Y%m%d%H%M%S` -c Release -o ./nugetpkgs --no-build
- name: Publish
run: |
for file in ./nugetpkgs/*.nupkg; do
dotnet nuget push $file --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate --source https://api.nuget.org/v3/index.json
done
2 changes: 1 addition & 1 deletion src/NQuery.Test/AspNetQueryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void Setup()
{
cfg.UseRedis(opts =>
{
opts.Endpoints.Add(new RedisEndpoint() { Host = "localhost", Port = 6379 });
opts.Endpoints.Add(new RedisEndpoint() { Host = "127.0.0.1", Port = 6379 });
});
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/NQuery.Test/RedisQueryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class RedisQueryTest
CacheDuration = 5,
RedisConfiguration = new RedisConfiguration(new[]
{
new RedisEndpoint { Host = "localhost", Port = 6379 }
new RedisEndpoint { Host = "127.0.0.1", Port = 6379 }
})
};
private NQuery _query;
Expand Down

0 comments on commit 51d04ea

Please sign in to comment.