-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create workflows for different scenarios where we'd want to run quick…
… checks
- Loading branch information
1 parent
b1bf126
commit 4046b84
Showing
3 changed files
with
74 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,26 @@ | ||
name: 'Quick Checks: unprotected feature branches' | ||
|
||
on: | ||
# We only run checks when pushing to a feature branch: | ||
# - If there are changes outside the ignored, non-code paths below | ||
push: | ||
branches: | ||
- '*' | ||
branches-ignore: | ||
- 'main' | ||
- 'v[0-9]+.[0-9]+' | ||
paths-ignore: | ||
- 'CHANGELOG.md' | ||
- '.changes/**' | ||
- 'version/VERSION' | ||
- 'docs/**' | ||
|
||
# This workflow runs for not-yet-reviewed external contributions and so it | ||
# intentionally has no write access and only limited read access to the | ||
# repository. | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
quick-checks: | ||
uses: ./.github/workflows/reusable/checks.yml |
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,22 @@ | ||
name: 'Quick Checks: protected branches & tags' | ||
|
||
on: | ||
# We always run checks on: | ||
# - PR merges to main | ||
# - PR merges to release branches | ||
push: | ||
branches: | ||
- 'main' | ||
- 'v[0-9]+.[0-9]+' | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+*' | ||
|
||
# This workflow runs for not-yet-reviewed external contributions and so it | ||
# intentionally has no write access and only limited read access to the | ||
# repository. | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
quick-checks: | ||
uses: ./.github/workflows/reusable/checks.yml |
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,26 @@ | ||
name: 'Quick Checks: pull requests' | ||
|
||
on: | ||
# We only run checks on pull request events: | ||
# - If there are changes outside the ignored, non-code paths below | ||
pull_request: | ||
types: | ||
- opened | ||
- ready_for_review | ||
- reopened | ||
- synchronize | ||
paths-ignore: | ||
- 'CHANGELOG.md' | ||
- '.changes/**' | ||
- 'version/VERSION' | ||
- 'docs/**' | ||
|
||
# This workflow runs for not-yet-reviewed external contributions and so it | ||
# intentionally has no write access and only limited read access to the | ||
# repository. | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
quick-checks: | ||
uses: ./.github/workflows/reusable/checks.yml |