Skip to content

Commit 25c3816

Browse files
committed
Updated nightly build script
1 parent 723a2fd commit 25c3816

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

.github/workflows/nightly-build.yml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,38 @@ jobs:
3838
- sample-code/module-20-docker
3939
- sample-code/end-to-end
4040
steps:
41-
# Step 1: Check out the repository code for the specific branch
41+
# Check out the repository code for the specific branch
4242
- name: Checkout repository
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4444
with:
45+
fetch-depth: 0
4546
ref: ${{ matrix.branch }}
4647

47-
# Step 2: Set up Node.js
48+
# Check out the branch
49+
- name: Fetch specific branch
50+
run: git fetch origin ${{ matrix.branch }} && git checkout ${{ matrix.branch }}
51+
52+
# List contents of the test directory
53+
- name: List test files
54+
run: |
55+
echo "Current branch: ${{ matrix.branch }}"
56+
echo "Test cases:"
57+
ls -R src/test/java/com/serenitydojo/playwright
58+
59+
# Set up Node.js
4860
- name: Set up Node.js
4961
uses: actions/setup-node@v3
5062
with:
5163
node-version: '20'
5264

53-
# Step 3: Set up JDK 17
65+
# Set up JDK 17
5466
- name: Set up JDK 17
5567
uses: actions/setup-java@v3
5668
with:
5769
java-version: '17'
5870
distribution: 'adopt'
5971

60-
# Step 4: Install Maven 3.9.9
72+
# Install Maven 3.9.9
6173
- name: Setup Maven Action
6274
6375
with:
@@ -66,23 +78,23 @@ jobs:
6678
java-distribution: temurin
6779
maven-version: 3.9.9
6880

69-
# Step 5: Verify Maven installation
81+
# Verify Maven installation
7082
- name: Verify Maven version
7183
run: mvn --version
7284

73-
# Step 6: Cache Maven dependencies
85+
# ache Maven dependencies
7486
- name: Cache Maven dependencies
7587
uses: actions/cache@v3
7688
with:
7789
path: ~/.m2
78-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
90+
key: ${{ runner.os }}-maven-${{ matrix.branch }}-${{ hashFiles('**/pom.xml') }}
7991
restore-keys: |
8092
${{ runner.os }}-maven
8193
82-
# Step 7: Install Playwright dependencies
94+
# Install Playwright dependencies
8395
- name: Install Playwright dependencies
8496
run: npx playwright install-deps
8597

86-
# Step 8: Run Maven to execute Playwright tests
98+
# Run Maven to execute Playwright tests
8799
- name: Run Playwright Tests
88100
run: mvn verify

0 commit comments

Comments
 (0)