diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..97c09bb --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,23 @@ +--- +name: Bug report +about: Create a report to help us improve +title: "[BUG]" +labels: bug +assignees: '' + +--- + +## Describe the bug + + +## To Reproduce + + +## Expected behavior + + +## Screenshots + + +## Additional context + diff --git a/.github/ISSUE_TEMPLATE/change-request-.md b/.github/ISSUE_TEMPLATE/change-request-.md new file mode 100644 index 0000000..8afcb6d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/change-request-.md @@ -0,0 +1,17 @@ +--- +name: Change request +about: New feature request +title: "[CR]" +labels: change +assignees: '' + +--- + +## Is your feature request related to a problem? Please describe + + +## Describe the solution you'd like + + +## Additional context + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..67375fa --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,19 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: "[FR]" +labels: enhancement +assignees: '' + +--- + +## Description + + +## Dependencies + +- + +## Acceptance criteria +1. + diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml new file mode 100644 index 0000000..a418f74 --- /dev/null +++ b/.github/workflows/run_tests.yml @@ -0,0 +1,56 @@ +name: Run tests + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + permissions: + contents: read + issues: read + checks: write + pull-requests: write + + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: Cache Maven Dependencies + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + + - name: Run tests with Maven + run: mvn --batch-mode --update-snapshots test + + - name: Generate JaCoCo Report + run: mvn jacoco:report + + - name: Publish Test Results + uses: EnricoMi/publish-unit-test-result-action@v2 + if: always() + with: + files: target/surefire-reports/*.xml + report_individual_runs: true + + - name: Test Reporter (JUnit) + uses: mikepenz/action-junit-report@v3 + if: always() + with: + report_paths: 'target/surefire-reports/*.xml' + check_name: JUnit Test Report + + - name: Codacy Coverage Reporter + uses: codacy/codacy-coverage-reporter-action@v1.3.0 + with: + project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} + coverage-reports: target/site/jacoco/jacoco.xml