Comments (3)
Assigned this to Hieu since we've just done same job in arklib-android
.
from ark-navigator.
Repository secret SONAR_TOKEN
is created.
That's what official docs say, but we did it a bit different way in arklib-android
:
Update your
build.gradle.kts
file with theorg.sonarqube
plugin and its configuration:
plugins {
id("org.sonarqube") version "4.4.1.3373"
}
sonar {
properties {
property("sonar.projectKey", "ARK-Builders_ARK-Navigator")
property("sonar.organization", "ark-builders")
property("sonar.host.url", "https://sonarcloud.io")
}
}
Create or update your
.github/workflows/build.yml
. Here is a base configuration to run a SonarCloud analysis on your master branch and Pull Requests. If you already have some GitHub Actions, you might want to just add some of these new steps to an existing one.
name: SonarCloud
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
steps:
- 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@v3
with:
java-version: 17
distribution: 'zulu' # Alternative distribution options are available
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew build sonar --info
from ark-navigator.
First resolve warnings using local analysis tool: #405
from ark-navigator.
Related Issues (20)
- Move resources with their associated data
- Corrupted PDF file can crash root opening
- JSON error during PlainStatsStorage initialization HOT 1
- Support Lottie HOT 1
- UninitializedPropertyAccessException crash when browsing device folders HOT 1
- Improve output of test step in CI
- Use atomic files and new storage locations
- Create onboarding instructions
- Replace logging from Log class with Timber HOT 1
- Improve dependencies catalogue in build.gradle (app)
- [UI/UX] Last folder item is covered by the floating Add button
- Fix Lint warnings/errors with local Analysis tool
- Introduce crashlytics tools to monitor crash
- Introduce analytics along with dashboard to monitor traffic from feature
- Enable global code format using .editorconfig in Android studio
- Aggregated mode is broken HOT 4
- Tags On/Off toggle
- Bump `arklib` version to `0d25eb0` HOT 1
- "As-is" sorting issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ark-navigator.