Skip to content

Commit 97007f8

Browse files
committed
Updated nightly build script
1 parent 99f99db commit 97007f8

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/nightly-build.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,15 @@ jobs:
3939
- sample-code/end-to-end
4040
continue-on-error: true # Allow the job to continue even if one branch fails
4141
steps:
42+
# Clean workspace
43+
- name: Clean up any existing files
44+
run: |
45+
echo "Cleaning up existing files"
46+
rm -rf *
47+
ls -a
48+
4249
# Check out the repository code for the specific branch
43-
- name: Checkout repository
50+
- name: Checkout branch ${{ matrix.branch }}
4451
uses: actions/checkout@v4
4552
with:
4653
fetch-depth: 0
@@ -54,6 +61,13 @@ jobs:
5461
run: |
5562
echo "Current branch: ${{ matrix.branch }}"
5663
64+
# Step 3: Confirm the branch and files
65+
- name: Confirm Branch and Files
66+
run: |
67+
echo "Current branch: ${{ matrix.branch }}"
68+
git branch
69+
ls -R .
70+
5771
# Set up Node.js
5872
- name: Set up Node.js
5973
uses: actions/setup-node@v3
@@ -62,7 +76,7 @@ jobs:
6276

6377
# Set up JDK 17
6478
- name: Set up JDK 17
65-
uses: actions/setup-java@v3
79+
uses: actions/setup-java@v4
6680
with:
6781
java-version: '17'
6882
distribution: 'adopt'
@@ -95,4 +109,6 @@ jobs:
95109

96110
# Run Maven to execute Playwright tests
97111
- name: Run Playwright Tests
98-
run: mvn verify
112+
run: |
113+
echo "Running tests for branch ${{ matrix.branch }}"
114+
mvn verify

0 commit comments

Comments
 (0)