From 638b189df8767922fbe5ab93ec5c63cb9b12d960 Mon Sep 17 00:00:00 2001 From: daniel-dtnc <85145586+daniel-dtnc@users.noreply.github.com> Date: Fri, 30 Jul 2021 10:05:19 +0900 Subject: [PATCH 1/6] Create build.yml --- build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 build.yml diff --git a/build.yml b/build.yml new file mode 100644 index 0000000..c3c313d --- /dev/null +++ b/build.yml @@ -0,0 +1,20 @@ +name: Build +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened] +jobs: + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 60220f59cbdffe2daa6519a072a847fa634cc548 Mon Sep 17 00:00:00 2001 From: daniel-dtnc <85145586+daniel-dtnc@users.noreply.github.com> Date: Fri, 30 Jul 2021 10:05:55 +0900 Subject: [PATCH 2/6] Create sonar-project.properties --- sonar-project.properties | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..c284366 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,12 @@ +sonar.projectKey=daniel-dtnc_test +sonar.organization=daniel-dtnc + +# This is the name and version displayed in the SonarCloud UI. +#sonar.projectName=test +#sonar.projectVersion=1.0 + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +#sonar.sources=. + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8 From 447f6ca8be02692f22a9af88964a0845bb9d8083 Mon Sep 17 00:00:00 2001 From: daniel-dtnc <85145586+daniel-dtnc@users.noreply.github.com> Date: Wed, 4 Aug 2021 13:40:20 +0900 Subject: [PATCH 3/6] Update sonar-project.properties --- sonar-project.properties | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index c284366..15b569e 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,12 +1,2 @@ -sonar.projectKey=daniel-dtnc_test -sonar.organization=daniel-dtnc -# This is the name and version displayed in the SonarCloud UI. -#sonar.projectName=test -#sonar.projectVersion=1.0 - -# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. -#sonar.sources=. - -# Encoding of the source code. Default is default system encoding -#sonar.sourceEncoding=UTF-8 +sonar.projectKey=test From 3cad06d28b7c0f7b75fbdd958a27dab25c22ef22 Mon Sep 17 00:00:00 2001 From: daniel-dtnc <85145586+daniel-dtnc@users.noreply.github.com> Date: Wed, 4 Aug 2021 13:41:17 +0900 Subject: [PATCH 4/6] Create build.yml --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1 @@ +1 From cb94048cb0cb792ba3cb5d0bc9294112afffeaa7 Mon Sep 17 00:00:00 2001 From: daniel-dtnc <85145586+daniel-dtnc@users.noreply.github.com> Date: Wed, 4 Aug 2021 13:42:40 +0900 Subject: [PATCH 5/6] Update build.yml --- .github/workflows/build.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d00491f..477df6c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1 +1,17 @@ -1 +name: Build +on: + push: + branches: + - master +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: 790ced3cf01a895eaedb0df50a30022937300cf7 + SONAR_HOST_URL: http://3.35.138.105:49111/ From 7a76261a2848a3349acd3cf89caa223cd13740f9 Mon Sep 17 00:00:00 2001 From: daniel-dtnc <85145586+daniel-dtnc@users.noreply.github.com> Date: Wed, 4 Aug 2021 13:44:29 +0900 Subject: [PATCH 6/6] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 477df6c..92b363e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: Build on: push: branches: - - master + - test jobs: build: name: Build