Limiting pipeline for testing.
This commit is contained in:
@@ -56,57 +56,53 @@ jobs:
|
|||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
# needs: check-and-create-pr
|
# needs: check-and-create-pr
|
||||||
# steps:
|
# steps:
|
||||||
# - name: Checkout Code
|
# - name: Checkout Code
|
||||||
# uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: SonarQube Scan
|
# - name: SonarQube Scan
|
||||||
uses: sonarsource/sonarqube-scan-action@v4.1.0
|
# uses: sonarsource/sonarqube-scan-action@v4.1.0
|
||||||
env:
|
# env:
|
||||||
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
# SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
# SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
||||||
|
|
||||||
- name: SonarQube Quality Gate
|
# - name: SonarQube Quality Gate
|
||||||
id: quality-gate
|
# id: quality-gate
|
||||||
uses: sonarsource/sonarqube-quality-gate-action@v1.1.0
|
# uses: sonarsource/sonarqube-quality-gate-action@v1.1.0
|
||||||
env:
|
# env:
|
||||||
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
# SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
# SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
||||||
|
|
||||||
- name: Custom Quality Gate Check
|
# - name: Custom Quality Gate Check
|
||||||
uses: DesarrolloORT/sonarqube-quality-gate-action@v1.0.1
|
# uses: DesarrolloORT/sonarqube-quality-gate-action@v1.0.1
|
||||||
id: quality-gate-check
|
# id: quality-gate-check
|
||||||
with:
|
# with:
|
||||||
sonar-project-key: rinoa-docker
|
# sonar-project-key: rinoa-docker
|
||||||
sonar-host-url: ${{ secrets.SONARQUBE_HOST }}
|
# sonar-host-url: ${{ secrets.SONARQUBE_HOST }}
|
||||||
sonar-token: ${{ secrets.SONARQUBE_TOKEN }}
|
# sonar-token: ${{ secrets.SONARQUBE_TOKEN }}
|
||||||
|
|
||||||
- name: JSON clean-up for proccessing...
|
# - name: JSON clean-up for proccessing...
|
||||||
id: json-cleanup
|
# id: json-cleanup
|
||||||
run: |
|
# run: |
|
||||||
echo "Cleaning up quality gate response..."
|
# echo "Cleaning up quality gate response..."
|
||||||
echo '${{ steps.quality-gate-check.outputs.quality-gate-result }}' > qg_input.txt
|
# echo '${{ steps.quality-gate-check.outputs.quality-gate-result }}' > qg_input.txt
|
||||||
sed -E 's/([a-zA-Z0-9_]+):/\\"\1\\":/g; s/:([^",{}\[\]]+)/:"\1"/g' qg_input.txt > qg_raw.json
|
# sed -E 's/([a-zA-Z0-9_]+):/\\"\1\\":/g; s/:([^",{}\[\]]+)/:"\1"/g' qg_input.txt > qg_raw.json
|
||||||
jq -c '.' qg_raw.json > qg_fixed_json.json
|
# jq -c '.' qg_raw.json > qg_fixed_json.json
|
||||||
projstatus=$(jq -r '.projectStatus.status' qg_fixed_json.json)
|
# projstatus=$(jq -r '.projectStatus.status' qg_fixed_json.json)
|
||||||
echo "${projstatus}"
|
# echo "${projstatus}"
|
||||||
caycStatus=$(jq -r '.projectStatus.caycStatus' qg_fixed_json.json)
|
# caycStatus=$(jq -r '.projectStatus.caycStatus' qg_fixed_json.json)
|
||||||
echo "${caycStatus}"
|
# echo "${caycStatus}"
|
||||||
conditions=$(jq -c '.projectStatus.conditions' qg_fixed_json.json)
|
# conditions=$(jq -c '.projectStatus.conditions' qg_fixed_json.json)
|
||||||
echo "${conditions}"
|
# echo "${conditions}"
|
||||||
echo "projstatus=${projstatus}" >> $GITHUB_OUTPUT
|
# echo "projstatus=${projstatus}" >> $GITHUB_OUTPUT
|
||||||
echo "caycStatus=${caycStatus}" >> $GITHUB_OUTPUT
|
# echo "caycStatus=${caycStatus}" >> $GITHUB_OUTPUT
|
||||||
echo "conditions=${conditions}" >> $GITHUB_OUTPUT
|
# echo "conditions=${conditions}" >> $GITHUB_OUTPUT
|
||||||
echo "qg_fixed_json=$(cat qg_fixed_json.json)" >> $GITHUB_ENV
|
# echo "qg_fixed_json=$(cat qg_fixed_json.json)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Convert JSON to Markdown Table
|
# - name: Convert JSON to Markdown Table
|
||||||
id: convert-json-to-md
|
# id: convert-json-to-md
|
||||||
uses: buildingcash/json-to-markdown-table-action@v1.1.0
|
# uses: buildingcash/json-to-markdown-table-action@v1.1.0
|
||||||
with:
|
# with:
|
||||||
json: ${{ steps.json-cleanup.outputs.conditions }}
|
# json: ${{ steps.json-cleanup.outputs.conditions }}
|
||||||
|
|
||||||
- name: Verify PR number
|
|
||||||
run: |
|
|
||||||
echo "PR number: ${{ steps.create-pr.outputs.pr_created }}"
|
|
||||||
|
|
||||||
# - name: Start Gitea-Sonarqube Bot
|
# - name: Start Gitea-Sonarqube Bot
|
||||||
# uses: docker://justusbunsi/gitea-sonarqube-bot:v0.3.3
|
# uses: docker://justusbunsi/gitea-sonarqube-bot:v0.3.3
|
||||||
|
|||||||
Reference in New Issue
Block a user