Skip to content

Commit

Permalink
Deploy Zip
Browse files Browse the repository at this point in the history
  • Loading branch information
hartra344 committed Apr 17, 2024
1 parent c84ce49 commit 9aea09a
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/nightly-e2e.yml
Expand Up @@ -16,13 +16,24 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: montudor/action-zip@v1
with:
args: zip -qq -r test-app-1.zip ./e2e/testSetup/BlankLogicApp/test-app-1

- name: Azure login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_TESTING_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TESTING_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_TESTING_SUBSCRIPTION_ID }}

- name: "Upload Playwright Report to Azure Blob Storage for static site access"
shell: bash
if: always()
run: |
ZIP_DIR='run-${{ github.run_id }}-${{ github.run_attempt }}'
az storage blob upload-batch --account-name lauxtestreport --auth-mode key -d "deploymentZips/$REPORT_DIR" -s test-app-1.zip
- name: Deploy Logic Apps For Testing
uses: azure/cli@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion e2e/testSetup/BlankLogicApp/logicAppStandard.bicep
Expand Up @@ -10,6 +10,7 @@ param workerSizeId string = '3'
param numberOfWorkers string = '1'
param netFrameworkVersion string = 'v6.0'
param ftpsState string = 'FtpsOnly'
param zipDeploymentLocation string

resource appServicePlan 'Microsoft.Web/serverfarms@2020-06-01' = {
name: appServicePlanName
Expand Down Expand Up @@ -100,6 +101,6 @@ resource zipDeploy 'Microsoft.Web/sites/extensions@2021-02-01' = {
name: any('ZipDeploy')
parent: appService
properties: {
packageUri: 'https://raw.githubusercontent.com/Azure/LogicAppsUX/e2eTesting/e2e/testSetup/BlankLogicApp/zipStuff.zip'
packageUri: zipDeploymentLocation
}
}
7 changes: 7 additions & 0 deletions e2e/testSetup/BlankLogicApp/test-app-1/host.json
@@ -0,0 +1,7 @@
{
"version": "2.0",
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle.Workflows",
"version": "[1.*, 2.0.0)"
}
}
6 changes: 6 additions & 0 deletions e2e/testSetup/BlankLogicApp/test-app-1/parameters.json
@@ -0,0 +1,6 @@
{
"test": {
"type": "String",
"value": "testvalue"
}
}
15 changes: 15 additions & 0 deletions e2e/testSetup/BlankLogicApp/test-app-1/testWorkflow1/workflow.json
@@ -0,0 +1,15 @@
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {},
"contentVersion": "1.0.0.0",
"outputs": {},
"triggers": {
"When_a_HTTP_request_is_received": {
"type": "Request",
"kind": "Http"
}
}
},
"kind": "Stateful"
}
Binary file removed e2e/testSetup/BlankLogicApp/zipStuff.zip
Binary file not shown.

0 comments on commit 9aea09a

Please sign in to comment.