TestNg Tests #586
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Maven | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven | |
name: TestNg Tests | |
on: | |
schedule: | |
- cron: '50 22 * * *' | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
paths: | |
- '**/selenium-testng-examples/**' | |
- 'pom.*' | |
pull_request: | |
paths: | |
- '**/selenium-testng-examples/**' | |
- 'pom.*' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: "temurin" | |
- name: Run testng tests | |
env: | |
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} | |
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} | |
run: mvn test -pl selenium-testng-examples |