diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml new file mode 100644 index 0000000..63d76d1 --- /dev/null +++ b/.github/workflows/dotnet-desktop.yml @@ -0,0 +1,32 @@ +name: .NET CI + +on: + push: + pull_request: + +jobs: + + build: + runs-on: windows-latest # For a list of available runner types, refer to + # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + # Install the .NET workload + - name: Install .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.x + + # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild + - name: Setup MSBuild.exe + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Build App + run: dotnet build DayBar\DayBar.csproj -c Release + + - name: Test App + run: dotnet test DayBar\DayBar.csproj