From 97890bce189204c838a1ecaa5b65f76ba908d5e8 Mon Sep 17 00:00:00 2001 From: Tanishq Arora Date: Wed, 11 Dec 2024 15:12:51 +0530 Subject: [PATCH 1/6] initial commit --- .github/workflows/solutionValidation.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/solutionValidation.yaml diff --git a/.github/workflows/solutionValidation.yaml b/.github/workflows/solutionValidation.yaml new file mode 100644 index 00000000000..15a61d6b6d9 --- /dev/null +++ b/.github/workflows/solutionValidation.yaml @@ -0,0 +1,18 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." From 368ff4544f5ea455c400f417c32758b0814e1bc9 Mon Sep 17 00:00:00 2001 From: Tanishq Arora Date: Mon, 16 Dec 2024 14:48:17 +0530 Subject: [PATCH 2/6] added test github-workflow --- .github/workflows/solutionValidation.yaml | 37 ++++++++++++++--------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/.github/workflows/solutionValidation.yaml b/.github/workflows/solutionValidation.yaml index 15a61d6b6d9..e88dca6731f 100644 --- a/.github/workflows/solutionValidation.yaml +++ b/.github/workflows/solutionValidation.yaml @@ -1,18 +1,27 @@ -name: GitHub Actions Demo -run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 -on: [push] +name: Solution Package Validations +on: + pull_request: + branches: + - users/tanishqarora/solutionValidation + paths: + - 'Solutions/**' + # Allows to run workflow manually from the Actions tab + workflow_dispatch: jobs: - Explore-GitHub-Actions: + Run-SolutionPackage-Validation: + name: Solution Package UI Testing - Testim.io runs-on: ubuntu-latest steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository + - name: Chekout pull request braanch + uses: actions/checkout@v3 + with: + ref: ${{github.event.pull_request.head.ref}} + repository: ${{github.event.pull_request.head.repo.full_name}} + persist-credentials: false + fetch-depth: 0 + - name: Get Modified Files run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + git fetch origin master:refs/remotes/origin/master + git diff --name-only origin/master ${{ github.event.pull_request.head.sha }}/../../../Solutions/ > changed_files.txt + echo "changed_files=$(cat changed_files.txt)" >> $GITHUB_ENV + cat changed_files.txt From 452d5923b4019fcda5a67c5e109c1dd14aa3bb4e Mon Sep 17 00:00:00 2001 From: Tanishq Arora Date: Mon, 16 Dec 2024 15:02:06 +0530 Subject: [PATCH 3/6] workflow --- .github/workflows/solutionValidation.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/solutionValidation.yaml b/.github/workflows/solutionValidation.yaml index e88dca6731f..766244df53d 100644 --- a/.github/workflows/solutionValidation.yaml +++ b/.github/workflows/solutionValidation.yaml @@ -16,9 +16,9 @@ jobs: uses: actions/checkout@v3 with: ref: ${{github.event.pull_request.head.ref}} - repository: ${{github.event.pull_request.head.repo.full_name}} - persist-credentials: false - fetch-depth: 0 + repository: ${{github.event.pull_request.head.repo.full_name}} + persist-credentials: false + fetch-depth: 0 - name: Get Modified Files run: | git fetch origin master:refs/remotes/origin/master From 7407e859c1142b3ea042ecfe6184836507db4baf Mon Sep 17 00:00:00 2001 From: Tanishq Arora Date: Mon, 16 Dec 2024 15:14:46 +0530 Subject: [PATCH 4/6] initial commit --- Solutions/CiscoUmbrella/Package/mainTemplate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Solutions/CiscoUmbrella/Package/mainTemplate.json b/Solutions/CiscoUmbrella/Package/mainTemplate.json index b25cb36997f..b7fb2f43162 100644 --- a/Solutions/CiscoUmbrella/Package/mainTemplate.json +++ b/Solutions/CiscoUmbrella/Package/mainTemplate.json @@ -30,7 +30,7 @@ }, "workbook1-name": { "type": "string", - "defaultValue": "Cisco Umbrella", + "defaultValue": "Cisco imbrella", "minLength": 1, "metadata": { "description": "Name for the workbook" From 9c7667d5fde169c240659c0cd5113808eff4bb5d Mon Sep 17 00:00:00 2001 From: Tanishq Arora Date: Mon, 16 Dec 2024 15:19:21 +0530 Subject: [PATCH 5/6] updated workflow --- .github/workflows/solutionValidation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/solutionValidation.yaml b/.github/workflows/solutionValidation.yaml index 766244df53d..2e36ada09f5 100644 --- a/.github/workflows/solutionValidation.yaml +++ b/.github/workflows/solutionValidation.yaml @@ -2,7 +2,7 @@ name: Solution Package Validations on: pull_request: branches: - - users/tanishqarora/solutionValidation + - master paths: - 'Solutions/**' # Allows to run workflow manually from the Actions tab From 2ad0d9b8e1003e95af1908580bdf017e8de6dea1 Mon Sep 17 00:00:00 2001 From: Tanishq Arora Date: Mon, 16 Dec 2024 15:36:31 +0530 Subject: [PATCH 6/6] workflow changed --- .github/workflows/solutionValidation.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/solutionValidation.yaml b/.github/workflows/solutionValidation.yaml index 2e36ada09f5..6681aa7b36b 100644 --- a/.github/workflows/solutionValidation.yaml +++ b/.github/workflows/solutionValidation.yaml @@ -21,7 +21,6 @@ jobs: fetch-depth: 0 - name: Get Modified Files run: | - git fetch origin master:refs/remotes/origin/master git diff --name-only origin/master ${{ github.event.pull_request.head.sha }}/../../../Solutions/ > changed_files.txt echo "changed_files=$(cat changed_files.txt)" >> $GITHUB_ENV cat changed_files.txt