From 6164f8aa82b8f0f26aea86e7de7536c547e7c2fd Mon Sep 17 00:00:00 2001 From: avdhutssh Date: Wed, 18 Sep 2024 17:04:40 +0530 Subject: [PATCH] GitHubActions-> Changes in maven file, java and maven installed --- .github/workflows/maven.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 224f15e..7bbd5e4 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -21,10 +21,19 @@ jobs: - name: Start Selenium container run: docker start selenium_chrome - - name: Run your tests + # Install Java and Maven on the Ubuntu runner + - name: Set up Java and Maven + uses: actions/setup-java@v2 + with: + java-version: '11' + + - name: Install Maven + run: sudo apt-get install -y maven + + # Run Maven command to execute tests + - name: Run tests with Maven run: | - # Your test execution logic goes here - echo "Running tests" + mvn clean test - name: Stop and remove Selenium container run: |