Skip to content

Commit e54cc9d

Browse files
Workflow (#20)
Updated the GitHub Actions workflow to run unit tests after building the project and upload the test results as artifacts, even if the tests fail. This helps in easily identifying and debugging issues in the code. Fixes #10.
1 parent 7fe602c commit e54cc9d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/maven-2.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ jobs:
3030
- name: Build with Maven
3131
working-directory: latte
3232
run: mvn -B package --file pom.xml
33-
33+
- name: Run tests with Maven
34+
working-directory: latte
35+
run: mvn test --file pom.xml
36+
- name: Upload test results
37+
if: always() # This ensures the test results are uploaded even if tests fail
38+
uses: actions/upload-artifact@v4.6.2
39+
with:
40+
name: test-results
41+
path: latte/latte/target/test-*.xml # Maven Surefire generates the test result files here
3442
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
3543
- name: Update dependency graph
3644
run: |

0 commit comments

Comments
 (0)