Skip to content

Commit

Permalink
Upgrade surefire version
Browse files Browse the repository at this point in the history
  • Loading branch information
ALEEF02 committed Nov 23, 2024
1 parent d9eebb6 commit f28afb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
# Step 1: Check out the repository
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Step 2: Set up JDK
- name: Set up JDK 11
Expand All @@ -29,10 +29,9 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('MavenBack/**/pom.xml') }}
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2
working-directory: MavenBack
# Step 4: Build and test with Maven
- name: Build and run tests
Expand Down
8 changes: 8 additions & 0 deletions MavenBack/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@
</execution>
</executions>
</plugin>

<!-- Allow unit testing from maven -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<!-- JUnit 5 requires Surefire version 2.22.0 or higher -->
<version>3.5.2</version>
</plugin>
</plugins>

<!-- The output .war file's name, which will be the name of the webapp. -->
Expand Down

0 comments on commit f28afb4

Please sign in to comment.