Skip to content

Commit

Permalink
ci: Add paths/paths-ignore to GitHub Actions workflows to reduce unne…
Browse files Browse the repository at this point in the history
…cessary builds (gravitational#15636)

We're running CIFuzz and CodeQL in many cases where it doesn't make sense. We get
charged for GitHub Actions minutes used, so let's make sure to only run them when
absolutely necessary.

For CIFuzz, only run if a *.go file has been modified.
For CodeQL, only run if a path outside of docs/* and rfd/* has been modified.
  • Loading branch information
reedloden authored Aug 19, 2022
1 parent 9bfa8de commit 8a4ee05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ on:
branches:
- master
- branch/*
paths:
- '**.go'
pull_request:
branches:
- master
- branch/*
paths:
- '**.go'

jobs:
fuzzing:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ on:
branches:
- master
- branch/*
paths-ignore:
- 'docs/**'
- 'rfd/**'
pull_request:
branches:
- master
- branch/*
paths-ignore:
- 'docs/**'
- 'rfd/**'

jobs:
analyze:
Expand Down

0 comments on commit 8a4ee05

Please sign in to comment.