Skip to content

fix: filtro de relatório de folha #14

fix: filtro de relatório de folha

fix: filtro de relatório de folha #14

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: MeuPonto.Web (SqlServer)
env:
AZURE_WEBAPP_NAME: 'meuponto' # set this to the name of your Azure Web App
AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
DOTNET_VERSION: '8.0.x' # set this to the .NET Core version to use
on:
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
include-prerelease: false
- name: Set up dependency caching for faster builds
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Build Web
run: dotnet build src/MeuPonto.Web/MeuPonto.Web.csproj --configuration Release
- name: Test Use Cases (Web)
run: dotnet test specs/MeuPonto.UseCases/MeuPonto.UseCases.csproj --configuration Release --verbosity normal --filter "TestCategory!=wip"
- name: Test Web
run: dotnet test tests/MeuPonto.Web.Tests/MeuPonto.Web.Tests.csproj --configuration Release --verbosity normal
- name: Publish Web
run: dotnet publish src/MeuPonto.Web/MeuPonto.Web.csproj --configuration Release -o ${{env.DOTNET_ROOT}}/myapp
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: .net-app
path: ${{env.DOTNET_ROOT}}/myapp
deploy-staging:
permissions:
contents: none
runs-on: self-hosted
needs: build
environment:
name: 'Staging'
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: .net-app
deploy-production:
permissions:
contents: none
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: .net-app
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_DF97A0858D26457B8DD117CD1C130B55 }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}