Skip to content

Commit

Permalink
Executing workflow when main pom.xml changes (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Jul 12, 2024
1 parent cbf56cf commit b971053
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ on:
branches: [ main ]
paths:
- '**/gitpod/**'
- 'pom.*'
pull_request:
paths:
- '**/gitpod/**'
- 'pom.*'

jobs:
# appium
Expand All @@ -35,7 +37,7 @@ jobs:
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
BUILD: 'selenium-build-whatever'
BROWSER_NAME: chrome
# !!!IMPORTANT!!! THIS MUST ALWAYS MATCH WHAT IS IN GITPOD.YML; SAUCE LABDS CUSTOMERS RELY ON THIS!!!!:
# !!!IMPORTANT!!! THIS MUST ALWAYS MATCH WHAT IS IN GITPOD.YML; SAUCE LABS CUSTOMERS RELY ON THIS!!!!:
run: |
mvn dependency:resolve
mvn test-compile
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/junit4.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# 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: JUnit 4 Tests

on:
Expand All @@ -11,9 +8,11 @@ on:
branches: [ main ]
paths:
- '**/selenium-junit4-examples/**'
- 'pom.*'
pull_request:
paths:
- '**/selenium-junit4-examples/**'
- 'pom.*'


jobs:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/real-devices.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# 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: Real Devices

on:
Expand All @@ -10,9 +8,11 @@ on:
branches: [ main ]
paths:
- '**/appium/**'
- 'pom.*'
pull_request:
paths:
- '**/appium/**'
- 'pom.*'

env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
Expand All @@ -31,6 +31,6 @@ jobs:
with:
java-version: 11
- name: RDC Native App Android
run: mvn test -pl appium/appium-app/appium-app-examples -Dtest=AndroidNativeAppTest -Dregion=eu -X
run: mvn test -pl appium/appium-app/appium-app-examples -Dtest=AndroidNativeAppTest -Dregion=eu
- name: RDC Native App IOS
run: mvn test -pl appium/appium-app/appium-app-examples -Dtest=IOSNativeAppTest -Dregion=eu -X
run: mvn test -pl appium/appium-app/appium-app-examples -Dtest=IOSNativeAppTest -Dregion=eu
5 changes: 2 additions & 3 deletions .github/workflows/selenium-cucumber-examples.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# 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: Cucumber Tests

on:
Expand All @@ -11,9 +8,11 @@ on:
branches: [ main ]
paths:
- '**/selenium-cucumber-examples/**'
- 'pom.*'
pull_request:
paths:
- '**/selenium-cucumber-examples/**'
- 'pom.*'

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/selenium-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ on:
branches: [ main ]
paths:
- '**/selenium-examples/**'
- 'pom.*'
pull_request:
paths:
- '**/selenium-examples/**'
- 'pom.*'

jobs:
formatting:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/testng.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ on:
branches: [ main ]
paths:
- '**/selenium-testng-examples/**'
- 'pom.*'
pull_request:
paths:
- '**/selenium-testng-examples/**'
- 'pom.*'

jobs:
build:
Expand Down

0 comments on commit b971053

Please sign in to comment.