Skip to content

fix(tempVoice): delete channel if user leave instantly #148

fix(tempVoice): delete channel if user leave instantly

fix(tempVoice): delete channel if user leave instantly #148

Workflow file for this run

name: SonarCloud Code Analysis
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
permissions:
pull-requests: read
jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: npm ci
- name: Test and coverage
run: npm test --coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: -Dsonar.projectKey=adroidea_bot
-Dsonar.organization=adroidea
- name: SonarCloud Quality Gate status
id: sonar_status
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
quality_gate_status=$(curl -s -u "${{ secrets.SONAR_TOKEN }}:" -X GET \
"https://sonarcloud.io/api/qualitygates/project_status?projectKey=adroidea_bot")
echo "$quality_gate_status"
status=$(echo "$quality_gate_status" | cut -c 29-30)
echo "result=$status" >> "$GITHUB_OUTPUT"
echo "$status"
- name: Write to workflow job summary
run: |
SUMMARY=$'# Testing Job Summary\n## Résultat Sonar\n${{ steps.sonar_status.outputs.result == 'OK' }}'
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY