Skip to content

Commit

Permalink
added pull request build yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Lucas committed Jan 30, 2024
1 parent 7216df6 commit 564f995
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workers/PullRequestBuild.yml
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

0 comments on commit 564f995

Please sign in to comment.