Skip to content

Feature/post 0.3.0 followups #69

Feature/post 0.3.0 followups

Feature/post 0.3.0 followups #69

Workflow file for this run

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: 7.0.x
## Restore Novu as a solution
- name: Restore dependencies
working-directory: ./src/
run: dotnet restore
## Test Novu
- name: Test
working-directory: ./src/
##
## 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
##
run: dotnet test --verbosity normal
env:
NOVU_API_URL: https://api.novu.co/v1
NOVU_API_KEY: ${{ secrets.NOVU_API_KEY }}