Update Readme.md #31
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: Build API 🛠️ | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore | |
run: dotnet restore ProjControleFinanceiroSlnApi/ProjControleFinanceiroSlnApi.sln | |
- name: Build | |
run: dotnet build ProjControleFinanceiroSlnApi/ProjControleFinanceiroSlnApi.sln --configuration Release --no-restore | |
- name: Test | |
run: dotnet test ProjControleFinanceiroSlnApi/ProjControleFinanceiroSlnApi.sln | |
- name: Publish | |
run: dotnet publish ProjControleFinanceiroSlnApi/ProjControleFinanceiroSlnApi.sln --configuration Release --no-build |