-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added ElevenLabsClient.EnableDebug option to enable and disable for all endpoints - Synced changes from unity package - Updated unit test - Updated docs
- Loading branch information
1 parent
8637b61
commit da3200e
Showing
21 changed files
with
151 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,31 +31,54 @@ env: | |
jobs: | ||
build: | ||
if: ${{ !github.event_name == 'pull_request' || !github.event.pull_request.draft }} | ||
runs-on: windows-latest | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
- uses: microsoft/setup-msbuild@v1 | ||
|
||
- run: dotnet restore | ||
|
||
- run: dotnet build --configuration Release --no-restore | ||
|
||
- name: Test Packages | ||
run: dotnet test --configuration Release | ||
if: ${{ github.ref != 'refs/heads/main' && github.event_name != 'push' }} | ||
run: dotnet test --configuration Release --collect:"XPlat Code Coverage" --logger:trx --no-build --no-restore --results-directory ./test-results | ||
env: | ||
ELEVEN_LABS_API_KEY: ${{ secrets.ELEVEN_LABS_API_KEY }} | ||
|
||
- name: Build Pack and Publish NuGet Package | ||
- name: Publish Test Results | ||
if: ${{ github.ref != 'refs/heads/main' && github.event_name != 'push' && always() }} | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
with: | ||
files: test-results/**/*.trx | ||
comment_mode: off | ||
report_individual_runs: true | ||
compare_to_earlier_commit: false | ||
|
||
- name: Code Coverage Summary Report | ||
if: ${{ github.ref != 'refs/heads/main' && github.event_name != 'push' && always() }} | ||
uses: irongut/[email protected] | ||
with: | ||
filename: test-results/**/coverage.cobertura.xml | ||
badge: true | ||
format: 'markdown' | ||
output: 'both' | ||
|
||
- name: Write Coverage Job Summary | ||
if: ${{ github.ref != 'refs/heads/main' && github.event_name != 'push' && always() }} | ||
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY | ||
|
||
- name: Pack and Publish NuGet Package | ||
run: | | ||
$projectPath = "${{ github.workspace }}\ElevenLabs-DotNet" | ||
$proxyProjectPath = "${{ github.workspace }}\ElevenLabs-DotNet-Proxy" | ||
# build all | ||
dotnet build --configuration Release | ||
# pack ElevenLabs-DotNet | ||
dotnet pack $projectPath --configuration Release --include-symbols | ||
$out = "$projectPath\bin\Release" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.