feat: Support contains operator with many to one multiplicity (#165) #408
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: .NET build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
dotnet-quality: ga | |
- name: Setup Report Generator | |
run: dotnet tool install --global dotnet-reportgenerator-globaltool | |
- name: MongoDB in GitHub Actions | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: '4.4' | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore -c Release | |
# Generate code coverage reports, which are recovered by Codacy afterwards. | |
- name: Test | |
run: dotnet test --no-build --verbosity normal -m:1 -c Release --collect:"XPlat Code Coverage" --results-directory:"../../coverage-outputs" | |
- name: Merge coverage results | |
run: | | |
reportgenerator -reports:"../../coverage-outputs/**/*.xml" -targetdir:"../../coverage-outputs" -reporttypes:Cobertura | |
rm -rfv ../../coverage-outputs/*/ | |
ls -la ../../coverage-outputs |