Skip to content

Replaced @Autowired with @PersistenceContext for proper JPA context m… #76

Replaced @Autowired with @PersistenceContext for proper JPA context m…

Replaced @Autowired with @PersistenceContext for proper JPA context m… #76

Workflow file for this run

name: my-actions
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
- name: Make gradlew executable
run: chmod +x gradlew
- name: Cache SonarQube packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Run tests and generate Jacoco report
run: ./gradlew test jacocoTestReport --no-daemon
- name: Build and SonarQube analyze
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew build sonar --info