File tree Expand file tree Collapse file tree 3 files changed +95
-3
lines changed Expand file tree Collapse file tree 3 files changed +95
-3
lines changed Original file line number Diff line number Diff line change @@ -108,10 +108,13 @@ jobs:
108108 - name : Install Playwright dependencies
109109 run : npx playwright install-deps
110110
111- # Run Maven to execute Playwright tests
112- - name : Run Playwright Tests
111+ - name : Show Project Structure
113112 run : |
114- echo "Running tests for branch ${{ matrix.branch }}"
115113 echo "Project structure with .java files:"
116114 find . -name "*.java" | sed 's|[^/]*/| |g'
115+
116+ # Run Maven to execute Playwright tests
117+ - name : Run Playwright Tests
118+ run : |
119+ echo "Running tests for branch ${{ matrix.branch }}"
117120 mvn clean verify
Original file line number Diff line number Diff line change 1+ name : Nightly Buildss
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ build-main :
8+ name : Build Main
9+ uses : ./.github/workflows/setup.yml
10+ with :
11+ branch : main
12+
13+ build-start-here :
14+ name : Build Start Here
15+ uses : ./.github/workflows/setup.yml
16+ with :
17+ branch : sample-code/start-here
18+
19+ build-module-3 :
20+ name : Build Module 3
21+ uses : ./.github/workflows/setup.yml
22+ with :
23+ branch : sample-code/module-3-my-first-playwright-test
24+
25+ build-module-4 :
26+ name : Build Module 4
27+ uses : ./.github/workflows/setup.yml
28+ with :
29+ branch : sample-code/module-4-interacting-with-elements
Original file line number Diff line number Diff line change 1+ name : Common Setup
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ branch :
7+ required : true
8+ type : string
9+
10+ jobs :
11+ setup :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ # Step 1: Checkout the specified branch
16+ - name : Checkout branch ${{ inputs.branch }}
17+ uses : actions/checkout@v3
18+ with :
19+ ref : ${{ inputs.branch }}
20+ fetch-depth : 0
21+ clean : true
22+
23+ # Set up Node.js
24+ - name : Set up Node.js
25+ uses : actions/setup-node@v3
26+ with :
27+ node-version : ' 20'
28+
29+ # Set up JDK 17
30+ - name : Set up JDK 17
31+ uses : actions/setup-java@v4
32+ with :
33+ java-version : ' 17'
34+ distribution : ' adopt'
35+
36+ # Install Maven 3.9.9
37+ - name : Setup Maven Action
38+ 39+ with :
40+ checkout-fetch-depth : 0
41+ java-version : 17
42+ java-distribution : temurin
43+ maven-version : 3.9.9
44+
45+ # Verify Maven installation
46+ - name : Verify Maven version
47+ run : mvn --version
48+
49+ # ache Maven dependencies
50+ - name : Cache Maven dependencies
51+ uses : actions/cache@v3
52+ with :
53+ path : ~/.m2
54+ key : ${{ runner.os }}-maven-${{ inputs.branch }}-${{ hashFiles('**/pom.xml') }}
55+ restore-keys : |
56+ ${{ runner.os }}-maven
57+
58+ # Install Playwright dependencies
59+ - name : Install Playwright dependencies
60+ run : npx playwright install-deps
You can’t perform that action at this time.
0 commit comments