From edf158b5173fa1510851d601ae7fd7438dc35696 Mon Sep 17 00:00:00 2001 From: Serhii Shliakhov Date: Thu, 14 Nov 2024 09:52:57 +0000 Subject: [PATCH 1/6] Add sonarcloud --- .github/workflows/test-application.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test-application.yaml b/.github/workflows/test-application.yaml index 5c976b4..9660bb1 100644 --- a/.github/workflows/test-application.yaml +++ b/.github/workflows/test-application.yaml @@ -73,6 +73,11 @@ jobs: DB_USERNAME: root ELASTICSEARCH_HOST: '127.0.0.1:9200' + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: From ac029f228fda286d4d8cfd7a3b1d07a1cd29e0aa Mon Sep 17 00:00:00 2001 From: Serhii Shliakhov Date: Thu, 14 Nov 2024 09:56:26 +0000 Subject: [PATCH 2/6] Create sonar-project.properties --- sonar-project.properties | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..c7f9b00 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,4 @@ +sonar.projectKey=matchish_laravel-scout-elasticsearch +sonar.organization=matchish + +sonar.php.coverage.reportPaths=coverage.xml From 28e2dd4b70629760a632c122834d04cb3dc46996 Mon Sep 17 00:00:00 2001 From: Serhii Shliakhov Date: Thu, 14 Nov 2024 09:56:58 +0000 Subject: [PATCH 3/6] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index d5588f9..dbb8d29 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,6 @@ It’s built on top of the latest release of [Laravel Scout](https://laravel.com package. Using this package, you are free to take advantage of all of Laravel Scout’s great features, and at the same time leverage the complete set of ElasticSearch’s search experience. -If you need any help, [stack overflow](https://stackoverflow.com/questions/tagged/laravel-scout%20laravel%20elasticsearch) is the preferred and recommended way to ask support questions. - ## :two_hearts: Features Don't forget to :star: the package if you like it. :pray: From 8b0f31804beaa753fa54155e1e217453e3324fce Mon Sep 17 00:00:00 2001 From: Serhii Shliakhov Date: Thu, 14 Nov 2024 09:57:54 +0000 Subject: [PATCH 4/6] Remove codecov --- .github/workflows/test-application.yaml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/test-application.yaml b/.github/workflows/test-application.yaml index 9660bb1..0344ff7 100644 --- a/.github/workflows/test-application.yaml +++ b/.github/workflows/test-application.yaml @@ -78,10 +78,3 @@ jobs: env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 - with: - files: ./coverage.xml - fail_ci_if_error: true - verbose: true - token: ${{ secrets.CODECOV_TOKEN }} From b4b1c924ef07653a68c506d310424d95ca10cd9b Mon Sep 17 00:00:00 2001 From: Serhii Shliakhov Date: Thu, 14 Nov 2024 10:05:44 +0000 Subject: [PATCH 5/6] Update sonarcloud workflow --- .github/workflows/test-application.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-application.yaml b/.github/workflows/test-application.yaml index 0344ff7..80892ac 100644 --- a/.github/workflows/test-application.yaml +++ b/.github/workflows/test-application.yaml @@ -73,8 +73,9 @@ jobs: DB_USERNAME: root ELASTICSEARCH_HOST: '127.0.0.1:9200' - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: SonarQube Cloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 5b02b4f95f03df611e296241cdfa4d23cc20ffb6 Mon Sep 17 00:00:00 2001 From: Serhii Shliakhov Date: Thu, 14 Nov 2024 10:18:36 +0000 Subject: [PATCH 6/6] Fix identation --- .github/workflows/test-application.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-application.yaml b/.github/workflows/test-application.yaml index 80892ac..e59df7a 100644 --- a/.github/workflows/test-application.yaml +++ b/.github/workflows/test-application.yaml @@ -73,9 +73,9 @@ jobs: DB_USERNAME: root ELASTICSEARCH_HOST: '127.0.0.1:9200' - - name: SonarQube Cloud Scan + - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}