-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brent Lucas
committed
Jan 30, 2024
1 parent
7216df6
commit 564f995
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: "Pull Request Build" | ||
|
||
env: | ||
MODERN_SLN: 'src/CSESoftware.Repository.EntityFrameworkCore.sln' | ||
|
||
on: | ||
pull_request: | ||
branches: [ "develop", "release", "master" ] | ||
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Nuget Restore for Modern App | ||
run: dotnet restore "${{ env.MODERN_SLN }}" | ||
|
||
- name: Setup .NET 8.0 Pre-release SDK | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '8.0' | ||
include-prerelease: True | ||
|
||
- name: Setup .NET 3.1 SDK | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '3.1.x' | ||
|
||
- name: Build Modern Solution | ||
run: dotnet publish "${{ env.MODERN_SLN }}" --configuration Release | ||
env: | ||
CI: false | ||
|
||
- name: Run Unit Tests on Modern Solution | ||
run: dotnet test "${{ env.MODERN_SLN }}" --no-build --configuration Release --verbosity normal |