42 lines
885 B
YAML
42 lines
885 B
YAML
name: Checks
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: windows-latest
|
|
|
|
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 CreamInstaller.sln /t:Restore /p:Configuration=Release
|
|
|
|
- name: Build Solution
|
|
run: msbuild CreamInstaller.sln /t:Build /p:Configuration=Release
|