Añadir .gitea/workflows/build.yml
This commit is contained in:
@@ -0,0 +1,32 @@
|
|||||||
|
name: Build .NET Project
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout código
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup .NET SDK
|
||||||
|
uses: actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: '8.0.x' # Cambia a tu versión (6.0, 7.0, 8.0...)
|
||||||
|
|
||||||
|
- name: Restaurar dependencias
|
||||||
|
run: dotnet restore
|
||||||
|
|
||||||
|
- name: Compilar
|
||||||
|
run: dotnet build --configuration Release --no-restore
|
||||||
|
|
||||||
|
- name: Ejecutar tests (opcional)
|
||||||
|
run: dotnet test --configuration Release --no-build --verbosity normal
|
||||||
Reference in New Issue
Block a user