From 1df47968ea829e0a158a1a9748c50c9d96932404 Mon Sep 17 00:00:00 2001 From: sobhat <65414057+sobhat@users.noreply.github.com> Date: Tue, 4 May 2021 20:45:14 -0400 Subject: [PATCH 1/9] Create node.js.yml --- .github/workflows/node.js.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 00000000..afc2425b --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,30 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x, 15.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test From c83c1a60d9020b5e657845ff570b0a2552183652 Mon Sep 17 00:00:00 2001 From: Simon Lamb Date: Wed, 5 May 2021 10:54:14 +1000 Subject: [PATCH 2/9] Create node2.js.yml --- .github/workflows/node2.js.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/node2.js.yml diff --git a/.github/workflows/node2.js.yml b/.github/workflows/node2.js.yml new file mode 100644 index 00000000..afc2425b --- /dev/null +++ b/.github/workflows/node2.js.yml @@ -0,0 +1,30 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x, 15.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test From 88e732cf593cd975fe8777faa61da7b3aea2bd05 Mon Sep 17 00:00:00 2001 From: sobhat <65414057+sobhat@users.noreply.github.com> Date: Tue, 4 May 2021 21:29:01 -0400 Subject: [PATCH 3/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e02cd858..69e2b56a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## Welcome +## Welcome Team the best team This repository contains the base project part of our on-site GitHub Verified Partner workshop program. It is meant to be used for in-classroom training under the supervision of GitHub coaches. From 522a5fb905bac0d05127ba158cc1d6592aa42633 Mon Sep 17 00:00:00 2001 From: sobhat <65414057+sobhat@users.noreply.github.com> Date: Tue, 4 May 2021 22:18:13 -0400 Subject: [PATCH 4/9] Update node2.js.yml --- .github/workflows/node2.js.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node2.js.yml b/.github/workflows/node2.js.yml index afc2425b..225dff7b 100644 --- a/.github/workflows/node2.js.yml +++ b/.github/workflows/node2.js.yml @@ -27,4 +27,5 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm ci - run: npm run build --if-present - - run: npm test + - run: npm run test --code--coverage + From beb6521d15deda542ce7f82c9f4a446285bca6f8 Mon Sep 17 00:00:00 2001 From: sobhat <65414057+sobhat@users.noreply.github.com> Date: Tue, 4 May 2021 22:41:51 -0400 Subject: [PATCH 5/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 69e2b56a..66ca49f9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## Welcome Team the best team +## Welcome Team the best team AUTOMATE This repository contains the base project part of our on-site GitHub Verified Partner workshop program. It is meant to be used for in-classroom training under the supervision of GitHub coaches. From 8544acd9c079303bbaf967a52aad7f74b5de4b9f Mon Sep 17 00:00:00 2001 From: Simon Lamb Date: Wed, 5 May 2021 13:40:47 +1000 Subject: [PATCH 6/9] Delete node.js.yml --- .github/workflows/node.js.yml | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml deleted file mode 100644 index afc2425b..00000000 --- a/.github/workflows/node.js.yml +++ /dev/null @@ -1,30 +0,0 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x, 12.x, 14.x, 15.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run build --if-present - - run: npm test From 788302e87d81c2902eb4226c6a1ec3b9422c37f5 Mon Sep 17 00:00:00 2001 From: Simon Lamb Date: Wed, 5 May 2021 14:13:42 +1000 Subject: [PATCH 7/9] Create azure.yml --- .github/workflows/azure.yml | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/azure.yml diff --git a/.github/workflows/azure.yml b/.github/workflows/azure.yml new file mode 100644 index 00000000..0716c395 --- /dev/null +++ b/.github/workflows/azure.yml @@ -0,0 +1,55 @@ +# This workflow will build and push a node.js application to an Azure Web App when a release is created. +# +# This workflow assumes you have already created the target Azure App Service web app. +# For instructions see https://docs.microsoft.com/azure/app-service/app-service-plan-manage#create-an-app-service-plan +# +# To configure this workflow: +# +# 1. For Linux apps, add an app setting called WEBSITE_WEBDEPLOY_USE_SCM and set it to true in your app **before downloading the file**. +# For more instructions see: https://docs.microsoft.com/azure/app-service/configure-common#configure-app-settings +# +# 2. Set up a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE with the value of your Azure publish profile. +# For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret +# +# 3. Change the values for the AZURE_WEBAPP_NAME, AZURE_WEBAPP_PACKAGE_PATH and NODE_VERSION environment variables (below). +# +# For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions +# For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples +on: + release: + types: [created] + +env: + AZURE_WEBAPP_NAME: RockingGitHubTest # set this to your application's name + AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root + NODE_VERSION: '10.x' # set this to the node version to use + AZURE_WEBAPP_STAGING_SLOT_NAME: 'Staging' + + +jobs: + build-and-deploy: + name: Build and Deploy + runs-on: ubuntu-latest + environment: production + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v2 + with: + node-version: ${{ env.NODE_VERSION }} + - name: npm install, build, and test + run: | + # Build and test the project, then + # deploy to Azure Web App. + npm install + npm run build --if-present + npm run test --if-present + - name: 'Deploy to Azure WebApp' + uses: azure/webapps-deploy@v2 + with: + slot-name: ${{ env.AZURE_WEBAPP_STAGING_SLOT_NAME }} + app-name: ${{ env.AZURE_WEBAPP_NAME }} + publish-profile: ${{ secrets.STAGING_PUBLISH_PROFILE }} + package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} + + From 5dc102860a53c8ff8568866524f3391bf4d8b7da Mon Sep 17 00:00:00 2001 From: Simon Lamb Date: Wed, 5 May 2021 14:15:34 +1000 Subject: [PATCH 8/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 66ca49f9..41402516 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## Welcome Team the best team AUTOMATE +ee## Welcome Team the best team AUTOMATE This repository contains the base project part of our on-site GitHub Verified Partner workshop program. It is meant to be used for in-classroom training under the supervision of GitHub coaches. From 86ff3dcb3daa9ff7e1851540408e515924ec5c0a Mon Sep 17 00:00:00 2001 From: Simon Lamb Date: Wed, 5 May 2021 14:23:24 +1000 Subject: [PATCH 9/9] Update azure.yml --- .github/workflows/azure.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/azure.yml b/.github/workflows/azure.yml index 0716c395..11646fdf 100644 --- a/.github/workflows/azure.yml +++ b/.github/workflows/azure.yml @@ -49,7 +49,7 @@ jobs: with: slot-name: ${{ env.AZURE_WEBAPP_STAGING_SLOT_NAME }} app-name: ${{ env.AZURE_WEBAPP_NAME }} - publish-profile: ${{ secrets.STAGING_PUBLISH_PROFILE }} + publish-profile: ${{ secrets.STAGING_PUBLISHPROFILE }} package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}