Skip to content

Commit

Permalink
fix(actions): fix secrets passing
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Dec 17, 2024
1 parent cad50fe commit 32929f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
run: dotnet build -c Release -v minimal --no-restore AITSYS.Vimeo.Ott.sln
- name: Test library
run: dotnet test -v minimal -c Release --no-restore --no-build AITSYS.Vimeo.Ott.sln
env:
VIMEO_TEST_TOKEN: ${{ secrets.VIMEO_TEST_TOKEN }}
VIMEO_TEST_USER: ${{ secrets.VIMEO_TEST_USER }}
pack:
timeout-minutes: 15
runs-on: ubuntu-latest
Expand Down
14 changes: 7 additions & 7 deletions AITSYS.Vimeo.Ott.Test/AITSYS.Vimeo.Ott.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<UserSecretsId>1551d531-5ba6-4604-999c-3207f33a9fce</UserSecretsId>
<NuGetAuditSuppress>true</NuGetAuditSuppress>
<NuGetAudit>false</NuGetAudit>
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
<IsPackable>false</IsPackable>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<NoWarn>1591;NU5128;DV2001;CS0271;CS0414</NoWarn>
<NuGetAuditSuppress>true</NuGetAuditSuppress>
<NuGetAudit>false</NuGetAudit>
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
<IsPackable>false</IsPackable>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<NoWarn>1591;NU5128;DV2001;CS0271;CS0414</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions AITSYS.Vimeo.Ott.Test/UnitTest1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public void Setup()
.Build();
this.VimeoClient = new(new()
{
ApiKey = config["token"],
ApiKey = config["token"] ?? Environment.GetEnvironmentVariable("VIMEO_TEST_TOKEN"),
MinimumLogLevel = LogLevel.Debug /*,
Proxy = new WebProxy("127.0.0.1:8000")*/
});

this.UserId = Convert.ToInt32(config["user_id"]);
this.UserId = Convert.ToInt32(config["user_id"] ?? Environment.GetEnvironmentVariable("VIMEO_TEST_USER"));

this.CustomerVimeoClient = this.VimeoClient.GetClientForCustomer($"https://api.vhx.tv/customers/{this.UserId}");
}
Expand Down

0 comments on commit 32929f4

Please sign in to comment.