.NET Build and Test #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET Build and Test | |
on: | |
push: | |
branches: | |
- main # ajuste o nome da branch conforme necessário | |
schedule: | |
- cron: '0 * * * *' # executa a cada hora | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.0' # ajuste para a versão do .NET que você precisa | |
- name: Restore dependencies | |
run: dotnet restore **/*.csproj | |
- name: Build | |
run: dotnet build **/*.csproj --no-restore | |