Skip to content

Commit

Permalink
ci: disable sonar in draft prs and main branch (opentibiabr#2062)
Browse files Browse the repository at this point in the history
We don't look at sonar on main/drafts. And it's a _very_ heavy build
that takes a really long time. Disabling it here is sensible to allow
merges to be worked on quicker.
  • Loading branch information
luan authored Dec 28, 2023
1 parent 14e3606 commit e5f5fed
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/analysis-sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@ name: Analysis - SonarCloud

on:
pull_request_target:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'src/**'
push:
paths:
- 'src/**'
branches:
- main
- "src/**"

env:
VCPKG_BUILD_TYPE: debug
CMAKE_BUILD_PARALLEL_LEVEL: 2
MAKEFLAGS: '-j 2'
MAKEFLAGS: "-j 2"
VCPKG_BINARY_SOURCES: clear;default,readwrite

jobs:
Expand Down

0 comments on commit e5f5fed

Please sign in to comment.