diff --git a/.github/workflows/master_dvuk1test.yml b/.github/workflows/master_dvuk1test.yml new file mode 100644 index 0000000..46e1d6a --- /dev/null +++ b/.github/workflows/master_dvuk1test.yml @@ -0,0 +1,53 @@ +# 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: Build and deploy JAR app to Azure Web App - dvuk1test + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Java version + uses: actions/setup-java@v1 + with: + java-version: '11' + + - name: Build with Maven + run: mvn clean install + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v2 + with: + name: java-app + path: '${{ github.workspace }}/target/*.jar' + + deploy: + 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@v2 + with: + name: java-app + + - name: Deploy to Azure Web App + id: deploy-to-webapp + uses: azure/webapps-deploy@v2 + with: + app-name: 'dvuk1test' + slot-name: 'production' + publish-profile: ${{ secrets.AzureAppService_PublishProfile_6a050017db044babb099da4bf3ad62b2 }} + package: '*.jar' \ No newline at end of file diff --git a/EasyMock/src/com/nirman/easymock/Customer.java b/EasyMock/src/com/nirman/easymock/Customer.java index 485b33d..ad37aba 100644 --- a/EasyMock/src/com/nirman/easymock/Customer.java +++ b/EasyMock/src/com/nirman/easymock/Customer.java @@ -25,4 +25,6 @@ public void setRetailer(Retailer retailer) { this.retailer = retailer; } + //comment in branch + } diff --git a/EasyMock/src/com/nirman/easymock/Retailer.java b/EasyMock/src/com/nirman/easymock/Retailer.java index ef001ef..e4b1284 100644 --- a/EasyMock/src/com/nirman/easymock/Retailer.java +++ b/EasyMock/src/com/nirman/easymock/Retailer.java @@ -26,4 +26,8 @@ private int getPrice(int basePrice) { public int getTaxRate() { return taxes_in_percent; } + + public String myTaxRate() { + return "100%"; + } } diff --git a/JavaPowershell/.gitignore b/JavaPowershell/.gitignore new file mode 100644 index 0000000..80ab9f4 --- /dev/null +++ b/JavaPowershell/.gitignore @@ -0,0 +1,3 @@ +/src/ +/bin/ + diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..27a798a --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,19 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- master + +pool: + vmImage: ubuntu-latest + +steps: +- script: echo Hello, world! + displayName: 'Run a one-line script' + +- script: | + echo Add other tasks to build, test, and deploy your project. + echo See https://aka.ms/yaml + displayName: 'Run a multi-line script'