Skip to content

Commit

Permalink
Do not run regress workflows on benign changes
Browse files Browse the repository at this point in the history
If only documentation is changed, the full regression check workflow
will still be executed, so this commit will instead skip running the
regression workflows if there are only changes to files that will not
affect the success of the workflow.
  • Loading branch information
mkindahl committed Jan 11, 2023
1 parent 396bc6d commit e8ea493
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/linux-32bit-build-and-test.yaml
Expand Up @@ -4,7 +4,15 @@ on:
branches:
- main
- prerelease_test
paths-ignore:
- '**.md'
- 'LICENSE*'
- NOTICE
pull_request:
paths-ignore:
- '**.md'
- 'LICENSE*'
- NOTICE
jobs:
config:
runs-on: ubuntu-latest
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/linux-build-and-test-ignored.yaml
@@ -0,0 +1,23 @@
# Ignoring version of the corresponding workflow. These files are
# needed to run required workflows even when the real workflow is not
# executed because some files were ignored.
name: Regression
on:
push:
branches:
- prerelease_test
paths:
- '**.md'
- 'LICENSE*'
- NOTICE
pull_request:
paths:
- '**.md'
- 'LICENSE*'
- NOTICE
jobs:
regress:
runs-on: ubuntu-latest
steps:
- run: |
echo "No build required"
8 changes: 8 additions & 0 deletions .github/workflows/linux-build-and-test.yaml
Expand Up @@ -11,7 +11,15 @@ on:
branches:
- main
- prerelease_test
paths-ignore:
- '**.md'
- 'LICENSE*'
- NOTICE
pull_request:
paths-ignore:
- '**.md'
- 'LICENSE*'
- NOTICE
jobs:
matrixbuilder:
runs-on: ubuntu-latest
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/shellcheck-ignored.yaml
@@ -0,0 +1,22 @@
# Ignoring version of the corresponding workflow. These files are
# needed to run required workflows even when the real workflow is not
# executed because some files were ignored.
name: Shellcheck
on:
pull_request:
paths-ignore:
- '**.sh'
- .github/workflows/shellcheck.yaml
push:
branches:
- prerelease_test
paths-ignore:
- '**.sh'
- .github/workflows/shellcheck.yaml
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- run: |
echo "No build required"
6 changes: 6 additions & 0 deletions .github/workflows/shellcheck.yaml
Expand Up @@ -2,10 +2,16 @@
name: Shellcheck
on:
pull_request:
paths:
- '**.sh'
- .github/workflows/shellcheck.yaml
push:
branches:
- main
- prerelease_test
paths:
- '**.sh'
- .github/workflows/shellcheck.yaml
jobs:
shellcheck:
name: Shellcheck
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/windows-build-and-test.yaml
Expand Up @@ -5,7 +5,17 @@ on:
branches:
- main
- prerelease_test
paths-ignore:
- '**.md'
- 'LICENSE*'
- NOTICE
- 'bootstrap*'
pull_request:
paths-ignore:
- '**.md'
- 'LICENSE*'
- NOTICE
- 'bootstrap*'
jobs:
config:
runs-on: ubuntu-latest
Expand Down

0 comments on commit e8ea493

Please sign in to comment.