Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Arquisoft/wiq_es1d
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroGlezC committed Apr 23, 2024
2 parents 6c56d64 + 6cd921b commit 4d66d5e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 146 deletions.
44 changes: 26 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,36 @@ on:
push:
branches:
- master
- develop
pull_request:
types: [opened, synchronize, reopened]
jobs:
unit-tests:
backend-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: syg-backend
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm --prefix users/authservice ci
- run: npm --prefix users/userservice ci
- run: npm --prefix gatewayservice ci
- run: npm --prefix webapp ci
- run: npm --prefix users/authservice test -- --coverage
- run: npm --prefix users/userservice test -- --coverage
- run: npm --prefix gatewayservice test -- --coverage
- run: npm --prefix webapp test -- --coverage
- name: Analyze with SonarCloud
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Build with Maven
run: mvn clean verify

- name: Generate Coverage Report
run: |
mvn -B package --file pom.xml
- name: List files in target directory
run: ls -R ./

# Mover el reporte de cobertura a la raíz del proyecto
- name: Move coverage report to project root
run: |
mkdir -p coverage
cp SYG-bootstrap/target/site/jacoco-aggregate/* coverage/
128 changes: 0 additions & 128 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 4d66d5e

Please sign in to comment.