feat: Topics #6
Workflow file for this run
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
name: "Test Pull Request" | |
on: | |
pull_request: | |
branches: [main] | |
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 | |
- name: Restore dependencies | |
working-directory: ./src/Novu | |
run: dotnet restore | |
## Build Novu | |
- name: Build Novu | |
working-directory: ./src/Novu | |
run: dotnet build --no-restore | |
## Restore Novu.Tests | |
- name: Restore test dependencies | |
working-directory: ./src/Novu.Tests | |
run: dotnet restore | |
## Test Novu | |
- name: Test | |
working-directory: ./src/Novu.Tests | |
run: dotnet test | |
env: | |
NOVU_API_KEY: ${{ secrets.NOVU_API_KEY }} |