CreamInstaller/.github/workflows/checks.yml
2021-08-09 06:52:48 -05:00

46 lines
982 B
YAML

name: Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
env:
Solution_Name: CreamInstaller.sln
Test_Project_Path: CreamInstaller\CreamInstaller.csproj
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Restore Project
run: dotnet restore
- name: Build Project
run: dotnet build --no-restore --configuration Release
- name: Test Project
run: dotnet test --no-build --verbosity normal --configuration Release
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.0.2
- name: Restore Solution
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=Release
- name: Build Solution
run: msbuild $env:Solution_Name /t:Build /p:Configuration=Release