Skip to content

Commit

Permalink
Add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
UncraftedName committed Apr 29, 2022
1 parent 1f79b88 commit 8e9841e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Test

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
build:

runs-on: windows-latest

steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Add msbuild to PATH
uses: microsoft/[email protected]

- name: Build Debug
run: msbuild ConsoleApp\ConsoleApp.csproj -target:Rebuild -property:Configuration=Debug -restore
- name: Build Release
run: msbuild ConsoleApp\ConsoleApp.csproj -target:Rebuild -property:Configuration=Release -restore
- name: Test
run: dotnet test --logger "console;verbosity=detailed"

0 comments on commit 8e9841e

Please sign in to comment.