feat: added missing entities validations and tests #424
Workflow file for this run
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: ci | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
jobs: | ||
labeler: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 1 | ||
steps: | ||
- name: Label the PR action | ||
continue-on-error: true | ||
uses: TimonVS/pr-labeler-action@v3 | ||
with: | ||
configuration-path: .github/labeler.yml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout / Setup JDK 11 / SBT-Cache | ||
uses: rodobarcaaa/action-jdk-sbt-cache@main | ||
with: | ||
token: ${{ secrets.GH_PAT }} | ||
- name: Scalafmt Check All | ||
run: sbt +scalafmtCheckAll | ||
sonar: | ||
runs-on: ubuntu-latest | ||
needs: [ linter ] | ||
timeout-minutes: 25 | ||
steps: | ||
- name: Checkout / Setup JDK 11 / SBT-Cache | ||
uses: rodobarcaaa/action-jdk-sbt-cache@main | ||
with: | ||
token: ${{ secrets.GH_PAT }} | ||
- run: docker-compose -f docker-compose-test.yml up -d | ||
- run: sbt -Dsonar.login=${{ secrets.SONAR_TOKEN }} sonar | ||
- run: docker rm -f -v bookstore-db | ||
- name: Tests report | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
if: always() | ||
with: | ||
check_name: Tests report | ||
files: ./**/*Test.xml | ||
- name: Coverage report | ||
uses: 5monkeys/cobertura-action@master | ||
with: | ||
path: target/scala-2.13/coverage-report/cobertura.xml | ||
minimum_coverage: 75 | ||
fail_below_threshold: true | ||
show_class_names: true |