Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Create sonarqube.yml #248

Open
wants to merge 3 commits into
base: experimental
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [pull_request]

jobs:
compile:
runs-on: ubuntu-latest
runs-on: self-hosted
name: Build
steps:
- uses: actions/checkout@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [pull_request]

jobs:
compile:
runs-on: ubuntu-latest
runs-on: self-hosted
name: Checkstyle
steps:
- uses: actions/checkout@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
compile:
runs-on: ubuntu-latest
runs-on: self-hosted
name: Build & Docker Push
steps:
- uses: actions/checkout@master
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: SonarQube

on: [pull_request]

jobs:
compile:
runs-on: self-hosted
name: SonarQube
steps:
- name: SonarCloud Scan
uses: SonarSource/[email protected]
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@

<properties>
<java.version>1.8</java.version>
<sonar.projectKey>E-Edu_task</sonar.projectKey>
<sonar.organization>e-edu</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<!--suppress UnresolvedMavenProperty -->
<sonar.login>${env.SONAR_LOGIN}</sonar.login>
</properties>

<dependencies>
Expand Down