forked from squid-cache/squid
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
44 additions
and
31 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,44 @@ | ||
# Tests in this workflow are run periodically. | ||
# They are generally very expensive and not on the critical path | ||
# for development | ||
|
||
# scheduled workwlows only run in the default branch | ||
on: | ||
schedule: | ||
- cron: "42 3 * * 0" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
coverity-scan: | ||
name: Scan with Coverity | ||
runs-on: ubuntu-22.04 | ||
# this job only runs if the github repository contains username | ||
# and password to access the Coverity Scan service | ||
env: | ||
coverity_user: ${{ secrets.COVERITY_USER }} | ||
coverity_token: ${{ secrets.COVERITY_TOKEN }} | ||
|
||
container: | ||
image: squidcache/buildfarm-coverity:stable | ||
options: --user 1001 # uid used by worfklow runner | ||
|
||
steps: | ||
- name: Checkout Sources | ||
if: env.coverity_user && env.coverity_token | ||
uses: actions/checkout@v4 | ||
|
||
- name: Scan | ||
if: env.coverity_user && env.coverity_token | ||
run: | | ||
cov-build --dir cov-int ./test-builds.sh layer-02-maximus | ||
tar caf cov-int.tar.xz cov-int | ||
curl \ | ||
--form email=${coverity_user} \ | ||
--form token=${coverity_token} \ | ||
--form version=coverity_scan \ | ||
--form [email protected] \ | ||
https://scan.coverity.com/builds?project=Squid | ||
true # ignore curl exit code |
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 |
---|---|---|
|
@@ -181,34 +181,3 @@ jobs: | |
with: | ||
name: build-logs-freebsd-${{ matrix.osversion }} | ||
path: btlayer-*.log | ||
|
||
coverity-scan: | ||
name: Scan with Coverity | ||
runs-on: ubuntu-22.04 | ||
# this job only runs if the github repository contains username | ||
# and password to access the Coverity Scan service | ||
env: | ||
coverity_user: ${{ secrets.COVERITY_USER }} | ||
coverity_token: ${{ secrets.COVERITY_TOKEN }} | ||
|
||
container: | ||
image: squidcache/buildfarm-coverity:stable | ||
options: --user 1001 # uid used by worfklow runner | ||
|
||
steps: | ||
- name: Checkout Sources | ||
if: env.coverity_user && env.coverity_token | ||
uses: actions/checkout@v4 | ||
|
||
- name: Scan | ||
if: env.coverity_user && env.coverity_token | ||
run: | | ||
cov-build --dir cov-int ./test-builds.sh layer-02-maximus | ||
tar caf cov-int.tar.xz cov-int | ||
curl \ | ||
--form email=${coverity_user} \ | ||
--form token=${coverity_token} \ | ||
--form version=coverity_scan \ | ||
--form [email protected] \ | ||
https://scan.coverity.com/builds?project=Squid | ||
true # ignore curl exit code |