From b425bf1db8506a42887e57c3333d937cb6a91fa4 Mon Sep 17 00:00:00 2001 From: Breno RdV Date: Sun, 4 Feb 2024 01:06:31 -0500 Subject: [PATCH 1/2] feature/workflow-template: updated some actions to avoid using Node 16. --- .github/workflows/template-qa-sonarcloud.yml | 4 ++-- .../template-test-build-and-publish-to-azure.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/template-qa-sonarcloud.yml b/.github/workflows/template-qa-sonarcloud.yml index ab7c0ad..66df5fd 100644 --- a/.github/workflows/template-qa-sonarcloud.yml +++ b/.github/workflows/template-qa-sonarcloud.yml @@ -51,12 +51,12 @@ jobs: run: dotnet tool install --global xmldocmd - name: Set up JDK 17 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'temurin' # AdoptOpenJDK is now Eclipse Temurin - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 ref: ${{ inputs.branchName }} diff --git a/.github/workflows/template-test-build-and-publish-to-azure.yml b/.github/workflows/template-test-build-and-publish-to-azure.yml index e3caef2..901d693 100644 --- a/.github/workflows/template-test-build-and-publish-to-azure.yml +++ b/.github/workflows/template-test-build-and-publish-to-azure.yml @@ -56,7 +56,7 @@ jobs: version: ${{ steps.set_version.outputs.version }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Define next release version id: set_version run: echo "version=$(cat ${{ inputs.projectFolder }}/${{ inputs.projectFile }} | grep -oP '(?<=).*(?=<\/AssemblyVersion>)')" >> $GITHUB_OUTPUT @@ -69,7 +69,7 @@ jobs: runs-on: windows-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET uses: actions/setup-dotnet@v3 @@ -196,7 +196,7 @@ jobs: ARTIFACT_NAME: ${{ needs.check_tag.outputs.artifact_name }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET uses: actions/setup-dotnet@v3 @@ -241,7 +241,7 @@ jobs: ls -la - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Git run: | From ddc9c53b4d8b930698fbc493e4ef30d540083fc4 Mon Sep 17 00:00:00 2001 From: Breno RdV Date: Sun, 4 Feb 2024 01:11:28 -0500 Subject: [PATCH 2/2] feature/workflow-template: added Sonar + Build status badges to the readme file. --- readme.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/readme.md b/readme.md index 3786641..49a7d21 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,17 @@ +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=brenordv_nightscout-companion-apps&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=brenordv_nightscout-companion-apps) +[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=brenordv_nightscout-companion-apps&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=brenordv_nightscout-companion-apps) +[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=brenordv_nightscout-companion-apps&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=brenordv_nightscout-companion-apps) +[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=brenordv_nightscout-companion-apps&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=brenordv_nightscout-companion-apps) +[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=brenordv_nightscout-companion-apps&metric=bugs)](https://sonarcloud.io/summary/new_code?id=brenordv_nightscout-companion-apps) +[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=brenordv_nightscout-companion-apps&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=brenordv_nightscout-companion-apps) +[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=brenordv_nightscout-companion-apps&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=brenordv_nightscout-companion-apps) +[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=brenordv_nightscout-companion-apps&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=brenordv_nightscout-companion-apps) +[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=brenordv_nightscout-companion-apps&metric=coverage)](https://sonarcloud.io/summary/new_code?id=brenordv_nightscout-companion-apps) +[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=brenordv_nightscout-companion-apps&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=brenordv_nightscout-companion-apps) +[![CGM Data Display App CI/CD Using Reusable Workflow](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-glucose-mon-app.yml/badge.svg)](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-glucose-mon-app.yml) +[![Data API Function App CI/CD Workflow Using Template](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-dataapi.yml/badge.svg)](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-dataapi.yml) +[![Data Transfer Function CI/CD Using Reusable Workflow](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-datatransfer.yml/badge.svg)](https://github.com/brenordv/nightscout-companion-apps/actions/workflows/master-publish-datatransfer.yml) + # Nightscout Companion Apps ## Table of Contents