diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..f1a94e3 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,5 @@ +# Lines starting with '#' are comments. +# Each line is a file pattern followed by one or more owners. + +# These owners will be the default owners for everything in the repo. +* @Houzz/integrations diff --git a/.github/workflows/test_sonarqube.yml b/.github/workflows/test_sonarqube.yml new file mode 100644 index 0000000..27e10a4 --- /dev/null +++ b/.github/workflows/test_sonarqube.yml @@ -0,0 +1,32 @@ +name: Test SonarQube + +on: + push: + branches: + - master + paths-ignore: + - 'build/**' + - 'example/**' + - 'oauth2example/**' + - 'test/**' + - 'catalog-info.yaml' + +jobs: + build: + name: Build and analyze + runs-on: arc-scale-set + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + # If you wish to fail your job when the Quality Gate is red, uncomment the + # following lines. This would typically be used to fail a deployment. + # - uses: sonarsource/sonarqube-quality-gate-action@master + # timeout-minutes: 5 + # env: + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/catalog-info.yaml b/catalog-info.yaml new file mode 100644 index 0000000..aa6fb02 --- /dev/null +++ b/catalog-info.yaml @@ -0,0 +1,24 @@ +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: node-quickbooks + annotations: + github.com/project-slug: Houzz/node-quickbooks + backstage.io/kubernetes-id: node-quickbooks + backstage.io/techdocs-ref: dir:. + sonarqube.org/project-key: default/Houzz_node-quickbooks_e9e69879-8fd5-4dd6-87e6-bb6a51a02e20 + + tags: + - pro + links: + - url: https://engwiki.houzz.tools/s/1cccc7e6-0374-4367-8c7b-47a9bfd2ba62 + title: Network Flows + icon: dashboard + - url: https://grafana.ivyco.net/d/WDIKpO74z/saas-pods-performance?orgId=1&var-interval=10s&var-cluster=gzucWflnz&var-node=All&var-namespace=All&var-controller_class=nginx&var-ingress_namespace=ingress-nginx&var-controller=All&var-service=node-quickbooks + title: Pods Health + icon: monitor +spec: + type: service + lifecycle: Production + owner: Integrations + system: default/houzz-pro diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..10fc370 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,8 @@ +sonar.projectKey=Houzz_node-quickbooks_e9e69879-8fd5-4dd6-87e6-bb6a51a02e20 +sonar.javascript.lcov.reportPaths=coverage/lcov.info +sonar.coverage.exclusions = [ + "/build/**", + "/example/**", + "/oauth2example/**", + "/test/**", +]