Update README.md to reference the new csharp SDK available #109
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: "Test Pull Request" | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| build_and_test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: 8.0.x | |
| ## Restore Novu as a solution | |
| - name: Restore dependencies | |
| working-directory: ./src/ | |
| run: dotnet restore | |
| ## each test type is targeted specifically via a filter | |
| ## see https://learn.microsoft.com/en-us/dotnet/core/testing/selective-unit-tests?pivots=mstest | |
| ## Test Novu | |
| - name: Micro Tests | |
| working-directory: ./src/ | |
| run: dotnet test --filter FullyQualifiedName~MicroTests | |
| env: | |
| NOVU_API_URL: https://api.novu.co/v1 | |
| NOVU_API_KEY: ${{ secrets.NOVU_API_KEY }} | |
| ## | |
| ## FOR TESTS WITH REAL CONNECTIONS | |
| ## | |
| ## this run should work but something is not picking up values and mapping in the configuration | |
| ## run: dotnet test -p:Novu__Url=https://api.novu.co/v1 -p:Novu__ApiKey=${{ secrets.NOVU_API_KEY }} | |
| ## instead inject using the ad hoc environment variable override | |
| ## see https://github.com/novuhq/novu-dotnet/blob/main/src/Novu.Extensions/ConfigurationExtensions.cs | |
| ## | |
| ## also up the logging because when something is wrong it is hard to diagnose | |
| ## | |
| ## Test that is small and short to indicate the system is up and going (enough) | |
| - name: Integration Tests (ping) | |
| working-directory: ./src/ | |
| run: dotnet test --filter FullyQualifiedName~IntegrationTests.IntegrationTests | |
| env: | |
| NOVU_API_URL: https://api.novu.co/v1 | |
| NOVU_API_KEY: ${{ secrets.NOVU_API_KEY }} | |
| # TODO: understand why these hang | |
| # - name: Integration Tests | |
| # working-directory: ./src/ | |
| # run: dotnet test --verbosity normal --filter FullyQualifiedName~IntegrationTests | |
| # env: | |
| # NOVU_API_URL: https://api.novu.co/v1 | |
| # NOVU_API_KEY: ${{ secrets.NOVU_API_KEY }} | |
| # Going to SKIP these tests until differences between v0.x and v2.x can be sorted | |
| # Currently failing on rules around deleting in_app integrations (production has rules different based on its data) | |
| # - name: Acceptance Tests | |
| # working-directory: ./src/ | |
| # | |
| # # tests have been made runnable under debug only for exclusions because they are VERY brittle | |
| # run: dotnet test --configuration Release --verbosity normal --filter FullyQualifiedName~AcceptanceTests | |
| # env: | |
| # NOVU_API_URL: https://api.novu.co/v1 | |
| # NOVU_API_KEY: ${{ secrets.NOVU_API_KEY }} | |