Reformular e reaplicar lógica de formatação de código com o spotless #86
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: Pipeline | |
| on: | |
| pull_request: | |
| branches: [master] | |
| permissions: | |
| pull-requests: write | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5.0.0 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Instalar Java 25 | |
| uses: actions/setup-java@v5.0.0 | |
| with: | |
| distribution: "temurin" | |
| java-version: 25 | |
| - name: Empacotamento do projeto | |
| run: mvn -B clean package -DskipTests | |
| tests: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v5.0.0 | |
| - name: Instalar Java 25 | |
| uses: actions/setup-java@v5.0.0 | |
| with: | |
| distribution: "temurin" | |
| java-version: 25 | |
| - name: Testes Unitários | |
| run: mvn -B verify | |
| - name: Upload do relátório do JaCoCo | |
| uses: actions/upload-artifact@v5.0.0 | |
| with: | |
| name: jacoco-report | |
| path: target/site/jacoco |