@@ -4,10 +4,10 @@ name: Playwright Tests
44on :
55 push :
66 branches :
7- - ' **'
7+ - ' **' # Run on every branch for every commit
88 pull_request :
99 branches :
10- - ' **'
10+ - ' **' # Run on every pull request for any branch
1111
1212jobs :
1313 test :
@@ -18,20 +18,21 @@ jobs:
1818 - name : Checkout repository
1919 uses : actions/checkout@v3
2020
21- # Step 2: Set up JDK 17
21+ # Step 2: Set up JDK 17 (adjust if you're using a different version)
2222 - name : Set up JDK 17
2323 uses : actions/setup-java@v3
2424 with :
2525 java-version : ' 17'
2626 distribution : ' adopt'
2727
2828 # 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 "/opt/maven/bin" >> $GITHUB_PATH
29+ - name : Setup Maven Action
30+ 31+ with :
32+ checkout-fetch-depth : 0
33+ java-version : 17
34+ java-distribution : temurin
35+ maven-version : 3.9.9
3536
3637 # Step 4: Verify Maven installation
3738 - name : Verify Maven version
4647 restore-keys : |
4748 ${{ runner.os }}-maven
4849
49- # Step 6 : Run Maven to execute Playwright tests
50+ # Step 4 : Run Maven to execute Playwright tests
5051 - name : Run Playwright Tests
5152 run : mvn verify
0 commit comments