Eliminado: Perfiles por defecto #64
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: Build Push/PR - Master | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Compile with Maven | |
run: mvn -B compile --file pom.xml | |
- name: Test | |
run: mvn -B test --file pom.xml | |
- name: Report results to DeepSource | |
if: ${{ github.event_name != 'pull_request' }} | |
run: | | |
# Install deepsource CLI | |
curl https://deepsource.io/cli | sh | |
# From the root directory, run the report coverage command | |
./bin/deepsource report --analyzer test-coverage --key java --value-file ./target/site/jacoco/jacoco.xml | |
env: | |
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }} |