From 1e2deb574eaf310793649fdbb4a5a54eecc2c36d Mon Sep 17 00:00:00 2001 From: adityaj Date: Thu, 3 Jul 2025 20:24:56 +0530 Subject: [PATCH 1/4] Minor change in readme to test github action --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eb71fa6a..1dbbbc2a 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ [](https://accounts.lambdatest.com/register?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample) -## Getting Started with Smart UI Testing +## Getting Started with Smart UI Testing Smart UI testing is an integral part of ensuring visual consistency across different environments for your web application. Using the LambdaTest platform with Selenium and Node.js, this process becomes intuitive and efficient. From b7602a227bf67d4c5b2885256def7f00a019b28f Mon Sep 17 00:00:00 2001 From: adityaj Date: Thu, 3 Jul 2025 20:27:50 +0530 Subject: [PATCH 2/4] Minor change in readme to test github action --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1dbbbc2a..eb71fa6a 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ [](https://accounts.lambdatest.com/register?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample) -## Getting Started with Smart UI Testing +## Getting Started with Smart UI Testing Smart UI testing is an integral part of ensuring visual consistency across different environments for your web application. Using the LambdaTest platform with Selenium and Node.js, this process becomes intuitive and efficient. From b0c9b007b26bfb075dd70c3c848706200a797df6 Mon Sep 17 00:00:00 2001 From: adityaj Date: Thu, 3 Jul 2025 20:46:21 +0530 Subject: [PATCH 3/4] Added yml changes for testing github actions --- .github/workflows/test-ghaction.yml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/test-ghaction.yml diff --git a/.github/workflows/test-ghaction.yml b/.github/workflows/test-ghaction.yml new file mode 100644 index 00000000..1e72f300 --- /dev/null +++ b/.github/workflows/test-ghaction.yml @@ -0,0 +1,36 @@ +name: Execute SmartUI Test with Github App Integration + +on: [push, pull_request] + +jobs: + smartui-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v1 + with: + fetch-depth: 10 + + - name: Step for push event + if: github.event_name == 'push' + run: | + echo "This is a push event!" + echo "The latest commitId $(git log -1 --format='%H')" + echo "COMMIT_ID=$(git log -1 --format='%H')" >> $GITHUB_ENV + + - name: Step for pull_request event + if: github.event_name == 'pull_request' + run: | + echo "This is a pull_request event!" + git log -n 5 --format="%H %an %s" | while read line; do echo "$line"; done + echo "The latest commitId $(git log -n 2 --format='%H' | tail -n 1)" + echo "COMMIT_ID=$(git log -n 2 --format='%H' | tail -n 1)" >> $GITHUB_ENV + + - name: Create Github URL + run: | + API_HOST=https://api.github.com + echo "The latest commitId is $COMMIT_ID" + GITHUB_URL=$API_HOST/repos/$GITHUB_REPOSITORY/statuses/$COMMIT_ID + echo "GITHUB_URL: $GITHUB_URL" + echo "GITHUB_URL=$GITHUB_URL" >> $GITHUB_ENV From 7388579c63074f9093d499f496fff9543a25aba9 Mon Sep 17 00:00:00 2001 From: adityaj Date: Fri, 4 Jul 2025 18:41:52 +0530 Subject: [PATCH 4/4] Minor refactor in readme for testing github actions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eb71fa6a..1dbbbc2a 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ [](https://accounts.lambdatest.com/register?utm_source=github&utm_medium=repo&utm_campaign=playwright-sample) -## Getting Started with Smart UI Testing +## Getting Started with Smart UI Testing Smart UI testing is an integral part of ensuring visual consistency across different environments for your web application. Using the LambdaTest platform with Selenium and Node.js, this process becomes intuitive and efficient.