Bump webpack from 5.76.3 to 5.95.0 in /src/Web/Grand.Web/vueapp (#514) #380
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 and deploy .NET Core app to Linux WebApp grandnode | |
on: | |
push: | |
branches: [ "main" ] | |
env: | |
AZURE_WEBAPP_NAME: grandnode-dev | |
AZURE_WEBAPP_PACKAGE_PATH: src/Web/Grand.Web/publish | |
AZURE_WEBAPP_PUBLISH_PROFILE: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | |
CONFIGURATION: Release | |
WORKING_DIRECTORY: src/Web/Grand.Web | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Create mongoDB Docker container | |
run: sudo docker run -d -p 27017:27017 mongo:latest | |
- name: Restore | |
run: dotnet restore "${{ env.WORKING_DIRECTORY }}" | |
- name: Build sln | |
run: dotnet build "GrandNode.sln" | |
- name: Build | |
run: dotnet build "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-restore -p:SourceRevisionId=${{ github.sha }} -p:GitBranch=${{ github.ref_name }} | |
- name: Grand.Business.Authentication Unit Tests | |
run: dotnet test ./src/Tests/Grand.Business.Authentication.Tests/Grand.Business.Authentication.Tests.csproj | |
- name: Grand.Business.Catalog Unit Tests | |
run: dotnet test ./src/Tests/Grand.Business.Catalog.Tests/Grand.Business.Catalog.Tests.csproj | |
- name: Grand.Business.Checkout Unit Tests | |
run: dotnet test ./src/Tests/Grand.Business.Checkout.Tests/Grand.Business.Checkout.Tests.csproj | |
- name: Grand.Business.Cms Unit Tests | |
run: dotnet test ./src/Tests/Grand.Business.Cms.Tests/Grand.Business.Cms.Tests.csproj | |
- name: Grand.Business.Common Unit Tests | |
run: dotnet test ./src/Tests/Grand.Business.Common.Tests/Grand.Business.Common.Tests.csproj | |
- name: Grand.Business.Customers Unit Tests | |
run: dotnet test ./src/Tests/Grand.Business.Customers.Tests/Grand.Business.Customers.Tests.csproj | |
- name: Grand.Business.Marketing Unit Tests | |
run: dotnet test ./src/Tests/Grand.Business.Marketing.Tests/Grand.Business.Marketing.Tests.csproj | |
- name: Grand.Business.Messages Unit Tests | |
run: dotnet test ./src/Tests/Grand.Business.Messages.Tests/Grand.Business.Messages.Tests.csproj | |
- name: Grand.Business.Storage Unit Tests | |
run: dotnet test ./src/Tests/Grand.Business.Storage.Tests/Grand.Business.Storage.Tests.csproj | |
- name: Grand.Business.System Unit Tests | |
run: dotnet test ./src/Tests/Grand.Business.System.Tests/Grand.Business.System.Tests.csproj | |
- name: Grand.Business.Data Unit Tests | |
run: dotnet test ./src/Tests/Grand.Data.Tests/Grand.Data.Tests.csproj | |
- name: Grand.Domain.Domain.Tests Unit Tests | |
run: dotnet test ./src/Tests/Grand.Domain.Tests/Grand.Domain.Tests.csproj | |
- name: Grand.Infrastructure.Tests Unit Tests | |
run: dotnet test ./src/Tests/Grand.Infrastructure.Tests/Grand.Infrastructure.Tests.csproj | |
- name: Grand.SharedKernel.Tests Unit Tests | |
run: dotnet test ./src/Tests/Grand.SharedKernel.Tests/Grand.SharedKernel.Tests.csproj | |
- name: Grand.Web.Common.Tests Unit Tests | |
run: dotnet test ./src/Tests/Grand.Web.Common.Tests/Grand.Web.Common.Tests.csproj | |
- name: Grand.Web.Admin.Tests Unit Tests | |
run: dotnet test ./src/Tests/Grand.Web.Admin.Tests/Grand.Web.Admin.Tests.csproj | |
- name: Publish | |
run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}" -p:SourceRevisionId=${{ github.sha }} -p:GitBranch=${{ github.ref_name }} | |
- name: Deploy to Azure WebApp | |
uses: azure/webapps-deploy@v2 | |
with: | |
app-name: ${{ env.AZURE_WEBAPP_NAME }} | |
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} | |
publish-profile: ${{ env.AZURE_WEBAPP_PUBLISH_PROFILE }} | |
- name: Publish Artifacts | |
uses: actions/[email protected] | |
with: | |
name: webapp | |
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} |