Skip to content

Commit b4e8777

Browse files
Add missing sections 04 through 10 to build workflow (#1)
1 parent 6b6beac commit b4e8777

1 file changed

Lines changed: 189 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,192 @@ jobs:
5858
}
5959
done
6060
echo "Section 03 completed successfully"
61+
62+
build-04-playwright-actions:
63+
name: "Section 04: Playwright Actions"
64+
runs-on: ubuntu-latest
65+
66+
steps:
67+
- uses: actions/checkout@v5
68+
69+
- name: Set up JDK 25
70+
uses: actions/setup-java@v5
71+
with:
72+
java-version: '25'
73+
distribution: 'temurin'
74+
cache: 'maven'
75+
76+
- name: Build all projects in section
77+
run: |
78+
set -e
79+
echo "Building Section 04: Playwright Actions"
80+
find section-04-playwright-actions -name pom.xml -not -path "*/target/*" | sort | while read pom; do
81+
echo "Building $(dirname $pom)"
82+
mvn clean compile -B -f "$pom" || {
83+
echo "Failed to compile $pom"
84+
exit 1
85+
}
86+
done
87+
echo "Section 04 completed successfully"
88+
89+
build-05-playwright-waiting-mechanisms:
90+
name: "Section 05: Playwright Waiting Mechanisms"
91+
runs-on: ubuntu-latest
92+
93+
steps:
94+
- uses: actions/checkout@v5
95+
96+
- name: Set up JDK 25
97+
uses: actions/setup-java@v5
98+
with:
99+
java-version: '25'
100+
distribution: 'temurin'
101+
cache: 'maven'
102+
103+
- name: Build all projects in section
104+
run: |
105+
set -e
106+
echo "Building Section 05: Playwright Waiting Mechanisms"
107+
find section-05-playwright-waiting-mechanisms -name pom.xml -not -path "*/target/*" | sort | while read pom; do
108+
echo "Building $(dirname $pom)"
109+
mvn clean compile -B -f "$pom" || {
110+
echo "Failed to compile $pom"
111+
exit 1
112+
}
113+
done
114+
echo "Section 05 completed successfully"
115+
116+
build-06-managing-browser-context-cookies:
117+
name: "Section 06: Managing Browser Context Cookies"
118+
runs-on: ubuntu-latest
119+
120+
steps:
121+
- uses: actions/checkout@v5
122+
123+
- name: Set up JDK 25
124+
uses: actions/setup-java@v5
125+
with:
126+
java-version: '25'
127+
distribution: 'temurin'
128+
cache: 'maven'
129+
130+
- name: Build all projects in section
131+
run: |
132+
set -e
133+
echo "Building Section 06: Managing Browser Context Cookies"
134+
find section-06-managing-browser-context-cookies -name pom.xml -not -path "*/target/*" | sort | while read pom; do
135+
echo "Building $(dirname $pom)"
136+
mvn clean compile -B -f "$pom" || {
137+
echo "Failed to compile $pom"
138+
exit 1
139+
}
140+
done
141+
echo "Section 06 completed successfully"
142+
143+
build-07-locators-real-time-challenges:
144+
name: "Section 07: Locators and Real-Time Challenges"
145+
runs-on: ubuntu-latest
146+
147+
steps:
148+
- uses: actions/checkout@v5
149+
150+
- name: Set up JDK 25
151+
uses: actions/setup-java@v5
152+
with:
153+
java-version: '25'
154+
distribution: 'temurin'
155+
cache: 'maven'
156+
157+
- name: Build all projects in section
158+
run: |
159+
set -e
160+
echo "Building Section 07: Locators and Real-Time Challenges"
161+
find section-07-locators-real-time-challenges -name pom.xml -not -path "*/target/*" | sort | while read pom; do
162+
echo "Building $(dirname $pom)"
163+
mvn clean compile -B -f "$pom" || {
164+
echo "Failed to compile $pom"
165+
exit 1
166+
}
167+
done
168+
echo "Section 07 completed successfully"
169+
170+
build-08-playwright-advanced-features:
171+
name: "Section 08: Playwright Advanced Features"
172+
runs-on: ubuntu-latest
173+
174+
steps:
175+
- uses: actions/checkout@v5
176+
177+
- name: Set up JDK 25
178+
uses: actions/setup-java@v5
179+
with:
180+
java-version: '25'
181+
distribution: 'temurin'
182+
cache: 'maven'
183+
184+
- name: Build all projects in section
185+
run: |
186+
set -e
187+
echo "Building Section 08: Playwright Advanced Features"
188+
find section-08-playwright-advanced-features -name pom.xml -not -path "*/target/*" | sort | while read pom; do
189+
echo "Building $(dirname $pom)"
190+
mvn clean compile -B -f "$pom" || {
191+
echo "Failed to compile $pom"
192+
exit 1
193+
}
194+
done
195+
echo "Section 08 completed successfully"
196+
197+
build-09-junit:
198+
name: "Section 09: JUnit"
199+
runs-on: ubuntu-latest
200+
201+
steps:
202+
- uses: actions/checkout@v5
203+
204+
- name: Set up JDK 25
205+
uses: actions/setup-java@v5
206+
with:
207+
java-version: '25'
208+
distribution: 'temurin'
209+
cache: 'maven'
210+
211+
- name: Build all projects in section
212+
run: |
213+
set -e
214+
echo "Building Section 09: JUnit"
215+
find section-09-junit -name pom.xml -not -path "*/target/*" | sort | while read pom; do
216+
echo "Building $(dirname $pom)"
217+
mvn clean compile -B -f "$pom" || {
218+
echo "Failed to compile $pom"
219+
exit 1
220+
}
221+
done
222+
echo "Section 09 completed successfully"
223+
224+
build-10-automation-framework-basic:
225+
name: "Section 10: Automation Framework - Basic"
226+
runs-on: ubuntu-latest
227+
228+
steps:
229+
- uses: actions/checkout@v5
230+
231+
- name: Set up JDK 25
232+
uses: actions/setup-java@v5
233+
with:
234+
java-version: '25'
235+
distribution: 'temurin'
236+
cache: 'maven'
237+
238+
- name: Build all projects in section
239+
run: |
240+
set -e
241+
echo "Building Section 10: Automation Framework - Basic"
242+
find section-10-automation-framework-basic -name pom.xml -not -path "*/target/*" | sort | while read pom; do
243+
echo "Building $(dirname $pom)"
244+
mvn clean compile -B -f "$pom" || {
245+
echo "Failed to compile $pom"
246+
exit 1
247+
}
248+
done
249+
echo "Section 10 completed successfully"

0 commit comments

Comments
 (0)