Skip to content

Commit 7db5c03

Browse files
committed
Updated github action scripts
1 parent cdd7c80 commit 7db5c03

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/playwright-tests.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ name: Playwright Tests
44
on:
55
push:
66
branches:
7-
- '**' # Run on every branch for every commit
7+
- '**'
88
pull_request:
99
branches:
10-
- '**' # Run on every pull request for any branch
10+
- '**'
1111

1212
jobs:
1313
test:
@@ -18,14 +18,26 @@ jobs:
1818
- name: Checkout repository
1919
uses: actions/checkout@v3
2020

21-
# Step 2: Set up JDK 17 (adjust if you're using a different version)
21+
# Step 2: Set up JDK 17
2222
- name: Set up JDK 17
2323
uses: actions/setup-java@v3
2424
with:
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+
echo "export PATH=/opt/maven/bin:$PATH" >> $GITHUB_ENV
35+
36+
# Step 4: Verify Maven installation
37+
- name: Verify Maven version
38+
run: mvn --version
39+
40+
# Step 5: Cache Maven dependencies
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
3951
run: mvn verify

0 commit comments

Comments
 (0)