From c1fdad4ef421a02f75473f239a5fcae04a1838b3 Mon Sep 17 00:00:00 2001 From: Steve <54807886+steve-hb@users.noreply.github.com> Date: Mon, 27 Apr 2020 20:24:30 +0200 Subject: [PATCH 1/3] Create sonarqube.yml --- .github/workflows/sonarqube.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/sonarqube.yml diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml new file mode 100644 index 0000000..15db98b --- /dev/null +++ b/.github/workflows/sonarqube.yml @@ -0,0 +1,11 @@ +name: SonarQube + +on: [pull_request] + +jobs: + compile: + runs-on: ubuntu-latest + name: Checkstyle + steps: + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@v1.1 From d06d8c407baa8fd5b9b7c9c5debeef01cf87c4e4 Mon Sep 17 00:00:00 2001 From: Steve Hb Date: Mon, 27 Apr 2020 20:42:15 +0200 Subject: [PATCH 2/3] Added sonarqube --- pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pom.xml b/pom.xml index c97738c..b914701 100644 --- a/pom.xml +++ b/pom.xml @@ -16,6 +16,11 @@ 1.8 + E-Edu_task + e-edu + https://sonarcloud.io + + ${env.SONAR_LOGIN} From f65b2eb538336ae69ea80413144b9bc237f4ccf1 Mon Sep 17 00:00:00 2001 From: Steve Hb Date: Mon, 27 Apr 2020 20:46:35 +0200 Subject: [PATCH 3/3] Use self hosted runners --- .github/workflows/build.yml | 2 +- .github/workflows/checkstyle.yml | 2 +- .github/workflows/docker.yml | 2 +- .github/workflows/sonarqube.yml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2e41b51..bbb8a9d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ on: [pull_request] jobs: compile: - runs-on: ubuntu-latest + runs-on: self-hosted name: Build steps: - uses: actions/checkout@master diff --git a/.github/workflows/checkstyle.yml b/.github/workflows/checkstyle.yml index ef0ceaf..2e84e1f 100644 --- a/.github/workflows/checkstyle.yml +++ b/.github/workflows/checkstyle.yml @@ -4,7 +4,7 @@ on: [pull_request] jobs: compile: - runs-on: ubuntu-latest + runs-on: self-hosted name: Checkstyle steps: - uses: actions/checkout@master diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index dc761f4..71093dc 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,7 +7,7 @@ on: jobs: compile: - runs-on: ubuntu-latest + runs-on: self-hosted name: Build & Docker Push steps: - uses: actions/checkout@master diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index 15db98b..3b75a7e 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -4,8 +4,8 @@ on: [pull_request] jobs: compile: - runs-on: ubuntu-latest - name: Checkstyle + runs-on: self-hosted + name: SonarQube steps: - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@v1.1