Skip to content

Commit 67965a6

Browse files
add dotnet workflow and dependabot
1 parent 3f13296 commit 67965a6

File tree

5 files changed

+42
-65
lines changed

5 files changed

+42
-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.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET
5+
6+
on:
7+
push:
8+
branches: [ "develop" ]
9+
pull_request:
10+
branches: [ "develop" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: 8.0.x
23+
24+
- name: Restore dependencies
25+
working-directory: "./src"
26+
run: dotnet restore
27+
28+
- name: Build
29+
working-directory: "./src"
30+
run: dotnet build --no-restore
31+
32+
- name: Test
33+
working-directory: "./src"
34+
run: dotnet test --no-build --verbosity normal

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/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)