Skip to content

Commit

Permalink
ci: add code quality action
Browse files Browse the repository at this point in the history
  • Loading branch information
boggard committed Jan 1, 2020
1 parent c90f4ad commit f6a5786
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
push:
branches:
- master

jobs:
code-quality:
name: Sonar Clod Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: SonarCloud Scan
run: ./gradlew sonarqube -Dsonar.login=${{ secrets.SONAR_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'java'
id "org.sonarqube" version "2.8"
}

group 'com.github'
Expand All @@ -21,3 +22,11 @@ dependencies {
implementation "org.apache.logging.log4j:log4j-slf4j-impl:2.11.2"
implementation "com.github.albfernandez:juniversalchardet:2.1.0"
}

sonarqube {
properties {
property "sonar.host.url", "http://sonarcloud.io"
property "sonar.projectKey", "boggard_universal-reader"
property "sonar.organization", "boggard"
}
}

0 comments on commit f6a5786

Please sign in to comment.