Skip to content

Commit 268737b

Browse files
authored
fix(ci): Add distribution: temurin to setup-java in quality-assurance.yml
1 parent 6edaaf2 commit 268737b

1 file changed

Lines changed: 16 additions & 19 deletions

File tree

.github/workflows/quality-assurance.yml

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,20 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515
with:
16-
fetch-depth: 0 # Full history for better analysis
17-
16+
fetch-depth: 0 # Full history for better analysis
17+
1818
- name: Set up JDK 17
1919
uses: actions/setup-java@v3
2020
with:
2121
java-version: '17'
22-
22+
distribution: 'temurin'
23+
2324
- name: Cache SonarQube packages
2425
uses: actions/cache@v3
2526
with:
2627
path: ~/.sonar/cache
2728
key: ${{ runner.os }}-sonar
28-
29+
2930
- name: SonarQube Scan
3031
run: |
3132
echo "Running SonarQube analysis..."
@@ -36,12 +37,11 @@ jobs:
3637
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
3738
SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }}
3839
continue-on-error: false
39-
4040
code-quality-gates:
4141
runs-on: ubuntu-latest
4242
steps:
4343
- uses: actions/checkout@v4
44-
44+
4545
- name: Check quality gates
4646
run: |
4747
echo "=== CODE QUALITY GATES ==="
@@ -50,45 +50,42 @@ jobs:
5050
echo "Security Hotspots: 0"
5151
echo "Bugs: 0"
5252
echo "Vulnerabilities: 0"
53-
53+
5454
- name: Report quality metrics
5555
run: |
5656
echo "Quality gate status: PASSED"
5757
echo "Metrics:"
58-
echo " - Maintainability Rating: A"
59-
echo " - Reliability Rating: A"
60-
echo " - Security Rating: A"
61-
echo " - Security Review Rating: A"
62-
58+
echo " - Maintainability Rating: A"
59+
echo " - Reliability Rating: A"
60+
echo " - Security Rating: A"
61+
echo " - Security Review Rating: A"
6362
lint-and-format:
6463
runs-on: ubuntu-latest
6564
steps:
6665
- uses: actions/checkout@v4
67-
66+
6867
- name: Run linting checks
6968
run: |
7069
echo "Running code style checks..."
7170
echo "Checking YAML formatting"
7271
echo "Checking Markdown formatting"
73-
echo "All linting checks passed"
72+
echo "All linting checks passed"
7473
continue-on-error: false
75-
74+
7675
- name: Check formatting
7776
run: |
7877
echo "Verifying code formatting..."
79-
echo "✓ Code formatting verified"
80-
78+
echo "Code formatting verified"
8179
dependency-check:
8280
runs-on: ubuntu-latest
8381
steps:
8482
- uses: actions/checkout@v4
85-
83+
8684
- name: Check for outdated dependencies
8785
run: |
8886
echo "Checking dependency versions..."
8987
echo "All dependencies up-to-date"
9088
echo "No security advisories found"
91-
9289
qa-report:
9390
needs: [sonarqube-scan, code-quality-gates, lint-and-format, dependency-check]
9491
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)