Skip to content

Commit

Permalink
try to fix Sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
stockiNail committed Jan 27, 2024
1 parent 41d9713 commit 7130ec7
Showing 1 changed file with 32 additions and 11 deletions.
43 changes: 32 additions & 11 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,37 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
#
# Checkout the repository content
#
- name: Checkout
uses: actions/checkout@v3
with:
# Disabling shallow clone
fetch-depth: 0
#
# Setup Java JDK
#
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'zulu'
#
# Run the build of project by ANT
#
- name: Build
run: ant buildAll
#
# Print out the artifacts list
#
- name: Print artifacts
run: ls -R ./dist

sonar:
runs-on: ubuntu-latest
needs: build
steps:
#
# Checkout the repository content
Expand All @@ -41,7 +72,7 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'zulu'
#
# Setup Node.js (for Sonar)
Expand All @@ -51,20 +82,10 @@ jobs:
with:
node-version: '16'
#
# Run the build of project by ANT
#
- name: Build
run: ant buildAll
#
# Run the Sonar scan
#
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@v1.7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
#
# Print out the artifacts list
#
- name: Print artifacts
run: ls -R ./dist

0 comments on commit 7130ec7

Please sign in to comment.