Merge pull request #106 from 0xBADDCAFE/main #9
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 | |
on: | |
push: | |
branches: main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
cache: true | |
cache-dependency-path: MoEmbed.App/packages.lock.json | |
- run: dotnet restore --locked-mode | |
- run: dotnet build | |
- name: Core Test | |
working-directory: MoEmbed.Core.Tests | |
run: dotnet test | |
- name: Models Test | |
working-directory: MoEmbed.Models.Tests | |
run: dotnet test |