Skip to content

Commit

Permalink
Create scheduled workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kinkie committed Dec 7, 2024
1 parent 2787145 commit eed1bf0
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 31 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/scheduled.yaml
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
31 changes: 0 additions & 31 deletions .github/workflows/slow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eed1bf0

Please sign in to comment.