OpenMetadata/.github/workflows/selenium-tests.yml
parthp2107 bfe3d86583
git workflow for selenium tests (#945)
* Create selenium-tests.yml

* Update selenium-tests.yml

* added dependency and configured testng.xml in pom

* removing testng config

* headless browers, testng to junit

* removed webDriverManager

* removed webDriverManager

* testing commit

* pushing all tests

* end-to-end tests

* changed workflow for proper test running order

* checking docker build

* printing logs for testing

* reformatted the code

* printing logs

* addressed null pointer exception

* addressing git worflow errows

* removing logs from start server test

* running .sh script directly from workflow

* testing script

* testing script

* addressing reviewdog findings

* updated chrome drivers

* addressing failing tests

* searchbar to searchBox

* testing

* cleaning code and added api test config in pom.xml

* commenting tests - functionality absent

* addressing reviewdog finding

* addressing reviewdog finding

* uncommenting search tests

* added condition for no service exists and added click event to leftout actions

* addressing reviewdog findings
2021-11-06 00:58:19 -07:00

31 lines
778 B
YAML

# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
name: Selenium Java CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Start Server and Ingest Sample Data
run: ./bin/initAndIngest.sh
- name: Run Page Tests
run: mvn clean test -Dtest="org.openmetadata.catalog.selenium.pages.**.*.java" -DfailIfNoTests=false