-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eed9c4d
commit e29e01b
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
name: Coverity | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
scan: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository_owner == 'danmar' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install missing software on ubuntu | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install qtbase5-dev qttools5-dev libqt5charts5-dev libboost-container-dev | ||
- name: Download Coverity build tool | ||
run: | | ||
wget -c -N https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=Haproxy" -O coverity_tool.tar.gz | ||
mkdir coverity_tool | ||
tar xzf coverity_tool.tar.gz --strip 1 -C coverity_tool | ||
- name: Build with Coverity build tool | ||
run: | | ||
export PATH=`pwd`/coverity_tool/bin:$PATH | ||
cov-build --dir cov-int make | ||
- name: Submit build result to Coverity Scan | ||
run: | | ||
tar czvf cov.tar.gz cov-int | ||
curl --form token=${{ secrets.COVERITY_SCAN_TOKEN }} \ | ||
--form [email protected] \ | ||
--form [email protected] \ | ||
--form version="Commit $GITHUB_SHA" \ | ||
--form description="Development" \ | ||
https://scan.coverity.com/builds?project=cppcheck |