Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
EliMoshkovich committed Oct 2, 2024
1 parent a4a2463 commit c706401
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/dotnet-sdk-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@ jobs:
dotnet-version: |
8.0.x
# - name: Restore dependencies
# working-directory: ./src/permit
# run: dotnet restore

- name: Build project
- name: Restore dependencies
working-directory: ./src/permit
run: dotnet build
run: dotnet restore

- name: Insert Token to tests file by secret API key
run: |
sed -i 's/private string testToken = "";/private string testToken = "${{ secrets.PERMIT_API_KEY }}";/' ./tests/PermitTests/PermitClientTests.cs
Expand All @@ -44,7 +40,11 @@ jobs:
- name: Run Tests
working-directory: ./tests/PermitTests
run: |
dotnet test
dotnet test --no-build --verbosity normal
- name: Build project
working-directory: ./src/permit
run: dotnet build --configuration Release

# - name: Update VersionPrefix in .csproj
# run: |
Expand Down

0 comments on commit c706401

Please sign in to comment.