Skip to content

Commit 3236a03

Browse files
committed
Trying a different nightly build approach
1 parent b45bd4b commit 3236a03

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed
Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,37 @@
1-
name: Nightly Buildss
1+
name: Nightly Builds
22

33
on:
4-
workflow_dispatch:
4+
schedule:
5+
- cron: '0 0 * * *' # Runs daily at midnight UTC
6+
workflow_dispatch: # Allows manual triggering of the workflow
57

68
jobs:
79
build-main:
810
name: Build Main
9-
uses: ./.github/workflows/setup.yml
11+
uses: ./.github/workflows/setup-and-test.yml
1012
with:
1113
branch: main
1214

1315
build-start-here:
1416
name: Build Start Here
15-
uses: ./.github/workflows/setup.yml
17+
uses: ./.github/workflows/setup-and-test.yml
1618
with:
1719
branch: sample-code/start-here
1820

1921
build-module-3:
2022
name: Build Module 3
21-
uses: ./.github/workflows/setup.yml
23+
uses: ./.github/workflows/setup-and-test.yml
2224
with:
2325
branch: sample-code/module-3-my-first-playwright-test
2426

2527
build-module-4:
2628
name: Build Module 4
27-
uses: ./.github/workflows/setup.yml
29+
uses: ./.github/workflows/setup-and-test.yml
2830
with:
29-
branch: sample-code/module-4-interacting-with-elements
31+
branch: sample-code/module-4-interacting-with-elements
32+
33+
build-module-5:
34+
name: Build Module 5
35+
uses: ./.github/workflows/setup-and-test.yml
36+
with:
37+
branch: sample-code/module-5-refactoring

.github/workflows/setup.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,10 @@ jobs:
5757
5858
# Install Playwright dependencies
5959
- name: Install Playwright dependencies
60-
run: npx playwright install-deps
60+
run: npx playwright install-deps
61+
62+
63+
- name: Run Playwright Tests
64+
run: |
65+
echo "Running tests for branch ${{ inputs.branch }}"
66+
mvn clean verify

0 commit comments

Comments
 (0)