update: merged with master #6
This file contains hidden or 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: Java CI | |
| on: | |
| pull_request: | |
| branches: [ "main", "dev" ] | |
| push: | |
| branches: [ "main", "dev" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout do código | |
| uses: actions/checkout@v4 | |
| - name: Configurar Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| cache: maven | |
| - name: Build + Testes | |
| run: mvn clean verify -B | |
| - name: Cache do Maven | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| - name: PMD | |
| run: mvn pmd:check | |
| - name: SpotBugs | |
| run: mvn com.github.spotbugs:spotbugs-maven-plugin:spotbugs | |
| # - name: 🔐 Dependency Check (OWASP) | |
| # run: mvn org.owasp:dependency-check-maven:check |