Skip to content

Commit

Permalink
Test SC GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
jules.vinot authored and jules.vinot committed May 22, 2024
1 parent 3f03b6a commit 33e84cd
Show file tree
Hide file tree
Showing 12 changed files with 41 additions and 560 deletions.
35 changes: 7 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,20 @@
name: Build

on:
push:
branches:
- master
- develop
- feature
- test-action
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
name: Build
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Cache SonarQube packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build and analyze
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@6c92dc36709458d7d6e1ed85a661f492d074301a
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
run: ./gradlew build sonar --info
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_GHA }}
28 changes: 0 additions & 28 deletions build.gradle

This file was deleted.

Binary file removed gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 0 additions & 5 deletions gradle/wrapper/gradle-wrapper.properties

This file was deleted.

234 changes: 0 additions & 234 deletions gradlew

This file was deleted.

Loading

0 comments on commit 33e84cd

Please sign in to comment.