Skip to content

Commit

Permalink
Workflow dispatch for smoke.
Browse files Browse the repository at this point in the history
  • Loading branch information
Charankumar H authored and Charankumar H committed Nov 5, 2024
1 parent c3abdff commit df05623
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 209 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@ jobs:
name: build-artifact
path: |
${{ github.workspace }}/target
${{ github.workspace }}/reports
${{ github.workspace }}/screenshots
${{ github.workspace }}/reports
77 changes: 0 additions & 77 deletions .github/workflows/e2e_job.yml

This file was deleted.

77 changes: 0 additions & 77 deletions .github/workflows/regression_job.yml

This file was deleted.

58 changes: 5 additions & 53 deletions .github/workflows/smoke_job.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Smoke Jobs
name: Smoke Job

on:
workflow_dispatch: # Allows manual triggering from the GitHub UI
Expand All @@ -7,8 +7,7 @@ jobs:
smoke_job_chrome_headless:
name: Smoke Tests Chrome Headless
runs-on: ubuntu-latest
needs:
- build_and_test

steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand All @@ -20,58 +19,11 @@ jobs:
distribution: 'adopt'
cache: maven

- name: Download Artifacts
- name: Download Build Artifact
uses: actions/download-artifact@v4
with:
name: target
name: build-artifact
continue-on-error: false # Fails if the artifact is not available, meaning build_and_test didn't complete

- name: Run Smoke Tests (Chrome)
run: mvn clean test -Drunmode=headless -Dbrowser=chrome -Dgroups=SWAG_LABS_SMOKE -Dtestng.parallel=methods -DthreadPoolSize=3 -Ddataproviderthreadcount=3

smoke_job_firefox_headless:
name: Smoke Tests Firefox Headless
runs-on: ubuntu-latest
needs: build_and_test

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Java and Maven
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: maven

- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: target

- name: Run Smoke Tests (Firefox)
run: mvn clean test -Drunmode=headless -Dbrowser=firefox -Dgroups=SWAG_LABS_SMOKE -Dtestng.parallel=methods -DthreadPoolSize=3 -Ddataproviderthreadcount=3

smoke_job_msedge_headless:
name: Smoke Tests MS Edge Headless
runs-on: ubuntu-latest
needs: build_and_test

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Java and Maven
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: maven

- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: target

- name: Run Smoke Tests (MS Edge)
run: mvn clean test -Drunmode=headless -Dbrowser=msedge -Dgroups=SWAG_LABS_SMOKE -Dtestng.parallel=methods -DthreadPoolSize=3 -Ddataproviderthreadcount=3

0 comments on commit df05623

Please sign in to comment.