Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- 'feature/**'
- 'fix/**'

jobs:

Expand All @@ -23,6 +24,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
Expand All @@ -32,13 +35,29 @@ jobs:
run: |
cd backend
mvn clean verify -Dtest="es.goeventsnow.backend.unit.EventTest"

- name: SonarQube Analysis (Backend)
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd backend
mvn sonar:sonar \
-Dsonar.organization=${{ secrets.SONAR_ORGANIZATION }} \
-Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY_BACKEND }} \
-Dsonar.projectName="2025-GoEventsNow Backend" \
-Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \
-Dsonar.login=${{ secrets.SONAR_TOKEN }}

client-quality:
name: Client - Basic CI
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js 20
uses: actions/setup-node@v4
with:
Expand All @@ -57,3 +76,19 @@ jobs:
run: |
cd frontend
npx ng test --include=src/app/app.component.spec.ts --coverage
- name: SonarQube Analysis (Frontend)
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd frontend
npx sonar-scanner \
-Dsonar.organization=${{ secrets.SONAR_ORGANIZATION }} \
-Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY_FRONTEND }} \
-Dsonar.projectName="2025-GoEventsNow Frontend" \
-Dsonar.sources=src \
-Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info

Loading