Skip to content

Commit b0ccbd6

Browse files
authored
Merge pull request #52 from samanazadi1996/add-dotnet-workflows
Add .NET GitHub Workflow and Dependabot for Automated Testing and Dependency Updates
2 parents 7e09c88 + 1ddeabb commit b0ccbd6

File tree

5 files changed

+55
-65
lines changed

5 files changed

+55
-65
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: nuget
4+
directory: "/src"
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 10

.github/workflows/build.yml.exclude

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/dotnet-core.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/dotnet-desktop.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: .NET Core Desktop
2+
3+
on:
4+
push:
5+
branches: [ "develop" ]
6+
pull_request:
7+
branches: [ "develop" ]
8+
9+
jobs:
10+
11+
build:
12+
13+
strategy:
14+
matrix:
15+
configuration: [Debug, Release]
16+
17+
runs-on: windows-latest
18+
19+
env:
20+
Solution_Name: OA.sln
21+
Test_Project_Path: ./src
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
# Install the .NET Core workload
30+
- name: Install .NET Core
31+
uses: actions/setup-dotnet@v4
32+
with:
33+
dotnet-version: 8.0.x
34+
35+
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
36+
- name: Setup MSBuild.exe
37+
uses: microsoft/setup-msbuild@v2
38+
39+
# Execute all unit tests in the solution
40+
- name: Execute unit tests
41+
run: dotnet test
42+
43+
# Restore the application to populate the obj folder with RuntimeIdentifiers
44+
- name: Restore the application
45+
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
46+
env:
47+
Configuration: ${{ matrix.configuration }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
----
77

8-
![.NET Core](https://github.com/Amitpnk/Onion-architecture-ASP.NET-Core/workflows/.NET%20Core/badge.svg)
8+
![.NET Core](https://github.com/Amitpnk/Onion-architecture-ASP.NET-Core/workflows/.NET%20Core%20Desktop/badge.svg)
99
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=Amitpnk_Onion-architecture-ASP.NET-Core&metric=bugs)](https://sonarcloud.io/dashboard?id=Amitpnk_Onion-architecture-ASP.NET-Core)
1010
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=Amitpnk_Onion-architecture-ASP.NET-Core&metric=code_smells)](https://sonarcloud.io/dashboard?id=Amitpnk_Onion-architecture-ASP.NET-Core)
1111
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=Amitpnk_Onion-architecture-ASP.NET-Core&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=Amitpnk_Onion-architecture-ASP.NET-Core)

0 commit comments

Comments
 (0)