Skip to content

Commit d8ccbfe

Browse files
committed
Add SonarCloud
1 parent 02818d8 commit d8ccbfe

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/main.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,25 @@
22

33
name: CI
44

5-
# Controls when the action will run. Triggers the workflow on push or pull request
6-
# events but only for the master branch
75
on:
86
push:
97
branches: [ master ]
108
pull_request:
119
branches: [ master ]
1210

13-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1411
jobs:
15-
# This workflow contains a single job called "build"
1612
build:
17-
# The type of runner that the job will run on
1813
runs-on: ubuntu-latest
1914

20-
# Steps represent a sequence of tasks that will be executed as part of the job
2115
steps:
22-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2316
- uses: actions/checkout@v2
17+
- name: Set up JDK
18+
uses: actions/setup-java@v1
19+
with:
20+
java-version: '8'
21+
- name: Analyze with SonarCloud
22+
run: mvn -B verify sonar:sonar -Dsonar.projectKey=tupilabs_HumanNameParser.java -Dsonar.organization=tupilabs -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN
23+
env:
24+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2425

25-
# Runs Maven
26-
- name: GitHub Action for Maven
27-
uses: LucaFeger/action-maven-cli@1.1.0
2826

0 commit comments

Comments
 (0)