Skip to content

Rishwanth feature

Rishwanth feature #55

Workflow file for this run

name: Maven CI - Build, Test & SonarQube
on:
push:
branches: [ main, master, develop ]
pull_request:
branches: [ main, master, develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Setup Firefox
uses: browser-actions/setup-firefox@v1
- name: Verify Firefox Installation
run: firefox --version
- name: Build and Test with Maven (Firefox Headless)
run: |
mvn clean verify \
-Dbrowser=firefox \
-Dheadless=true
- name: SonarQube Analysis
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
run: |
mvn sonar:sonar \
-Dsonar.projectKey=Automation-Project \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.token=$SONAR_TOKEN