Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
amol.kadam committed Oct 4, 2024
1 parent fe51104 commit 0227a18
Showing 1 changed file with 54 additions and 2 deletions.
56 changes: 54 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,55 @@
#
#name: Selenium TestNG CI
#
#on:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
#
#jobs:
# build:
# runs-on: ubuntu-latest
#
# steps:
# # Step 1: Checkout the code
# - name: Checkout repository
# uses: actions/checkout@v2
#
# # Step 2: Set up Java environment
# - name: Set up JDK 11
# uses: actions/setup-java@v2
# with:
# distribution: 'adopt'
# java-version: '11'
#
# # Step 3: Cache Maven dependencies for faster builds
# - name: Cache Maven dependencies
# uses: actions/cache@v2
# with:
# path: ~/.m2
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
# restore-keys: |
# ${{ runner.os }}-maven-
#
# # Step 4: Install Maven dependencies
# - name: Install dependencies
# run: mvn install -DskipTests
#
# # Step 5: Run TestNG tests
# - name: Run TestNG tests
# run: mvn test
#
# # Step 6: Generate Extent Reports (optional)
# - name: Upload TestNG Extent Reports
# uses: actions/upload-artifact@v2
# with:
# name: extent-reports
# path: target/extent-reports/ # Adjust this path to your reports folder



name: Selenium TestNG CI

Expand Down Expand Up @@ -42,9 +94,9 @@ jobs:
- name: Run TestNG tests
run: mvn test

# Step 6: Generate Extent Reports (optional)
# Step 6: Upload Extent Reports (updated to use v3)
- name: Upload TestNG Extent Reports
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: extent-reports
path: target/extent-reports/ # Adjust this path to your reports folder

0 comments on commit 0227a18

Please sign in to comment.