Skip to content

Tentando denovo

Tentando denovo #8

name: HotelSistemAPI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: ubuntu-latest
env:
Solution_Name: HotelSistem
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.4
# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
run: msbuild HotelSistem.sln /t:Restore /p:Configuration=${{ matrix.configuration }}
- name: Build the application
run: dotnet build HotelSistem.sln --configuration ${{ matrix.configuration }}