add test build action

This commit is contained in:
Namu
2025-09-13 18:30:40 +02:00
parent 499aab9e46
commit 0add7a8242
2 changed files with 29 additions and 0 deletions

View File

@@ -5,6 +5,13 @@ VisualStudioVersion = 17.14.36408.4 d17.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestSonarqube", "TestSonarqube\TestSonarqube.csproj", "{9EF861DD-89C0-45EC-8914-A1FAD9052B77}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".gitea", ".gitea", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{9AB7403F-27F5-4E37-A3CB-1CF6091DCACA}"
ProjectSection(SolutionItems) = preProject
build.yml = build.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -19,6 +26,9 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{9AB7403F-27F5-4E37-A3CB-1CF6091DCACA} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3E9CFC24-9941-4BA0-907B-B04BCFE6BB74}
EndGlobalSection

19
build.yml Normal file
View File

@@ -0,0 +1,19 @@
name: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore TestSonarqube.sln
- name: Build
run: dotnet build TestSonarqube.sln --no-restore --configuration Release