Skip to content

Commit

Permalink
Fix codeql workflow timeout issue (vitessio#11760)
Browse files Browse the repository at this point in the history
* increase the timeout to build binaries in codeql workflow

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* test codeql workflow on pr

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* addition of Slack Workflow Notification

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* addition of if condition to send slack message

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* fail if needed

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* clean up codeql workflow

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
  • Loading branch information
frouioui committed Dec 14, 2022
1 parent 574491d commit ce7f2d8
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/codeql_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,25 @@ jobs:
sudo apt-get update
sudo apt-get install percona-xtrabackup-24
- name: Building last release's binaries
timeout-minutes: 10
- name: Building binaries
timeout-minutes: 30
run: |
source build.env
make build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

- name: Slack Workflow Notification
if: ${{ failure() }}
uses: Gamesight/slack-workflow-status@master
with:
repo_token: ${{secrets.GITHUB_TOKEN}}
slack_webhook_url: ${{secrets.SLACK_WEBHOOK_URL}}
channel: '#codeql'
name: 'CodeQL Workflows'

- name: Fail if needed
if: ${{ failure() }}
run: |
exit 1

0 comments on commit ce7f2d8

Please sign in to comment.