Skip to content

Commit b35bf54

Browse files
committed
Update maven version in Github actions
1 parent 6be0563 commit b35bf54

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/playwright-tests.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,19 @@ jobs:
2525
java-version: '17'
2626
distribution: 'adopt'
2727

28-
# Step 3: Cache Maven dependencies to speed up future builds
28+
# Step 3: Install Maven 3.9.9
29+
- name: Install Maven 3.9.9
30+
run: |
31+
wget https://downloads.apache.org/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz
32+
tar -xvzf apache-maven-3.9.9-bin.tar.gz
33+
sudo mv apache-maven-3.9.9 /opt/maven
34+
sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn
35+
36+
# Step 4: Verify Maven installation
37+
- name: Verify Maven version
38+
run: mvn --version
39+
40+
# Step 5: Cache Maven dependencies to speed up future builds
2941
- name: Cache Maven dependencies
3042
uses: actions/cache@v3
3143
with:
@@ -34,6 +46,6 @@ jobs:
3446
restore-keys: |
3547
${{ runner.os }}-maven
3648
37-
# Step 4: Run Maven to execute Playwright tests
49+
# Step 6: Run Maven to execute Playwright tests
3850
- name: Run Playwright Tests
39-
run: mvn verify
51+
run: mvn verify

0 commit comments

Comments
 (0)