Skip to content

COD-93 - added job timeout as 30 minutes #16

COD-93 - added job timeout as 30 minutes

COD-93 - added job timeout as 30 minutes #16

Workflow file for this run

name: SonarCloud
on:
push:
branches:
- main
- develop
- sonarcloud
- refactor
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install SonarScanner
run: npm install -g sonarqube-scanner
- name: SonarCloud Scan
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=${{ secrets.SONAR_TOKEN }}