Skip to content

Use Repository on DAOs #451

Use Repository on DAOs

Use Repository on DAOs #451

Workflow file for this run

name: CI
on:
push:
branches-ignore: [ main ]
pull_request:
branches: [ develop ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
- name: Cache SonarCloud packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Maven Build, Test, and Sonar
run: mvn -B verify sonar:sonar -Pcoverage -Dsonar.projectKey=martinellich_jtaf4
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}