Skip to content

Commit

Permalink
Add CleanArchitecture.Blazored.yml for Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ubhaya committed Dec 26, 2023
1 parent 83441a1 commit 9b29f7e
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CleanArchitecture.Blazored.Dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Run Test for CleanArchitecture.Blazored.Dev
name: Build and Run Test for Package


on:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/CleanArchitecture.Blazored.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build and Run Test for Project Template


on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 8.x
- name: Restore dependencies
run: dotnet restore CleanArchitecture.Blazored.Dev.sln
- name: Build solution
run: dotnet build --no-restore --verbosity normal content/CleanArchitecture.Blazored/CleanArchitecture.Blazored.sln -c Release
- name: Execute Application.UnitTest
run: dotnet test -c Release --no-build --verbosity normal content/CleanArchitecture.Blazored/tests/Application.UnitTests/Application.UnitTests.csproj
- name: Execute Domain.UnitTest
run: dotnet test -c Release --no-build --verbosity normal content/CleanArchitecture.Blazored/tests/Domain.UnitTests/Domain.UnitTests.csproj
12 changes: 9 additions & 3 deletions CleanArchitecture.Blazored.Dev.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@ VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0937006E-66B5-44AD-BB7F-5849CB5FBFA6}"
ProjectSection(SolutionItems) = preProject
CleanArchitecture.Blazored.sln = content\CleanArchitecture.Blazored\CleanArchitecture.Blazored.sln
CleanArchitecture.Blazored.csproj = CleanArchitecture.Blazored.csproj
README.md = README.md
CleanArchitecture.Blazored.csproj = CleanArchitecture.Blazored.csproj
CleanArchitecture.Blazored.Dev.yml = .github\workflows\CleanArchitecture.Blazored.Dev.yml
CleanArchitecture.Blazored.yml = .github\workflows\CleanArchitecture.Blazored.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ProjectTemplate", "ProjectTemplate", "{42DE6BE8-675D-4765-B136-909306C4D293}"
ProjectSection(SolutionItems) = preProject
template.json = content\CleanArchitecture.Blazored\.template.config\template.json
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Template Items", "Template Items", "{160D49DA-504F-4496-8303-AE4258DAE42C}"
ProjectSection(SolutionItems) = preProject
content\CleanArchitecture.Blazored\CleanArchitecture.Blazored.sln = content\CleanArchitecture.Blazored\CleanArchitecture.Blazored.sln
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{21642CE3-AFFB-4B7D-8417-59AD52BD5D9E}"
Expand Down Expand Up @@ -103,7 +109,7 @@ Global
{41B7E555-9C51-4BE2-8CF5-CB63E5B08605} = {EAAFA0BC-C784-4424-A935-B294852D7527}
{60932890-CC01-4512-BFC9-F3C6675091A1} = {BA840084-69F1-46BC-911E-A037FB5EF547}
{BEAFBA8E-E02B-4325-9805-D65E221A5BC4} = {EAAFA0BC-C784-4424-A935-B294852D7527}
{42DE6BE8-675D-4765-B136-909306C4D293} = {0937006E-66B5-44AD-BB7F-5849CB5FBFA6}
{42DE6BE8-675D-4765-B136-909306C4D293} = {160D49DA-504F-4496-8303-AE4258DAE42C}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E41B9081-EAF9-43BE-99B8-D8059C884823}
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
Clean Architecture Template for Blazor.Net
# Clean Architecture Template for Blazor.Net

[![Package](https://github.com/ubhaya/CleanArchitecture.Blazored/actions/workflows/CleanArchitecture.Blazored.Dev.yml/badge.svg)](https://github.com/ubhaya/CleanArchitecture.Blazored/actions/workflows/CleanArchitecture.Blazored.Dev.yml)
[![Template](https://github.com/ubhaya/CleanArchitecture.Blazored/actions/workflows/CleanArchitecture.Blazored.yml/badge.svg)](https://github.com/ubhaya/CleanArchitecture.Blazored/actions/workflows/CleanArchitecture.Blazored.yml)

0 comments on commit 9b29f7e

Please sign in to comment.