diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..4e3d961 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: Code Quality Test + +# Run for any commits to any branch +on: [push, pull_request, workflow_dispatch] + +env: + SONAR_PROJECT: ${{ secrets.SONAR_PROJECT }} + SONAR_URL: ${{ secrets.SONAR_URL }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + +jobs: + ci: + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@v2 + - name: Setup sonar scanner + uses: warchant/setup-sonar-scanner@v3 + - name: Run Sonarqube analysis + run: | + sonar-scanner \ + -Dsonar.qualitygate.wait=true \ + -Dsonar.host.url=$SONAR_URL \ + -Dsonar.login=$SONAR_TOKEN \ + -Dsonar.projectKey=$SONAR_PROJECT \ + -Dsonar.sources=. \ + -Dsonar.scm.disabled=true \ diff --git a/app/src/main/java/com/rootstrap/presenter/theme/Theme.kt b/app/src/main/java/com/rootstrap/presenter/theme/Theme.kt index db333eb..e0c1bf5 100644 --- a/app/src/main/java/com/rootstrap/presenter/theme/Theme.kt +++ b/app/src/main/java/com/rootstrap/presenter/theme/Theme.kt @@ -22,7 +22,7 @@ private val DarkColorScheme = darkColorScheme( onSecondary = TextColor, onTertiary = TextColor, onBackground = TextColor, - onSurface = TextColor, + onSurface = TextColor ) private val LightColorScheme = lightColorScheme( @@ -35,7 +35,7 @@ private val LightColorScheme = lightColorScheme( onSecondary = TextColor, onTertiary = TextColor, onBackground = TextColor, - onSurface = TextColor, + onSurface = TextColor ) var AppColorScheme: ColorScheme = LightColorScheme diff --git a/app/src/main/res/xml/data_extraction_rules.xml b/app/src/main/res/xml/data_extraction_rules.xml index 0c4f95c..e59428e 100644 --- a/app/src/main/res/xml/data_extraction_rules.xml +++ b/app/src/main/res/xml/data_extraction_rules.xml @@ -5,7 +5,7 @@ --> -