Fix minor bug #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./back-end | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Test with Maven | |
id: test | |
run: mvn clean test | |
- name: Check Test Results | |
if: ${{ steps.test.outcome != 'success' }} | |
run: exit 1 | |
- name: Generate Test case Report | |
run: mvn surefire-report:report-only | |
- name: Upload Coverage Report | |
uses: actions/upload-artifact@v3 | |
if: success() || failure() | |
with: | |
name: Test case Report | |
path: back-end/target/site/ |