Skip to content

Commit

Permalink
feat: Add Spicedb action to workflow and update tests
Browse files Browse the repository at this point in the history
Integrated the authzed/action-spicedb@v1 into the GitHub Actions workflow. This will ensure that the latest version of spicedb is used during build process. Also, added comments in SpiceDbClientTests.cs for clarity on server address during testing.
  • Loading branch information
tanczosm committed Apr 11, 2024
1 parent 44383bc commit fde60ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
run: dotnet build --configuration Release --no-restore
- uses: "authzed/action-spicedb@v1"
with:
version: "latest"
- name: Test
run: dotnet test --verbosity normal
- name: Publish
Expand Down
2 changes: 2 additions & 0 deletions SpiceDb.Tests/SpiceDbClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public void SetUp()
.AddEnvironmentVariables();
var configurationRoot = builder.Build();

// spicedb serve-testing
// default server address: 127.0.0.1:50051
var serverAddress = configurationRoot.GetValue<string>("SERVER_ADDRESS");
var token = configurationRoot.GetValue<string>("TOKEN");

Expand Down

0 comments on commit fde60ef

Please sign in to comment.