Tests: Added the Unit test cases and Fixed the existing failing APi Test cases #10
This file contains hidden or 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
| name: Unit Test | |
| on: | |
| pull_request: | |
| push: | |
| jobs: | |
| unit-test: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4.2.2 | |
| - name: Setup .NET 7.0 | |
| uses: actions/setup-dotnet@v4.3.0 | |
| with: | |
| dotnet-version: '7.0.x' | |
| - name: Restore dependencies | |
| run: dotnet restore Contentstack.Net.sln | |
| - name: Build solution | |
| run: dotnet build Contentstack.Net.sln --no-restore --configuration Debug | |
| - name: Run unit tests | |
| run: dotnet test Contentstack.Core.Unit.Tests/Contentstack.Core.Unit.Tests.csproj --no-build --verbosity normal --configuration Debug | |