Skip to content

Commit 4e1c3b7

Browse files
committed
Create workflows for different scenarios where we'd want to run quick checks
1 parent 052e661 commit 4e1c3b7

File tree

3 files changed

+74
-0
lines changed

3 files changed

+74
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Quick Checks: unprotected feature branches'
2+
3+
on:
4+
# We only run checks when pushing to a feature branch:
5+
# - If there are changes outside the ignored, non-code paths below
6+
push:
7+
branches:
8+
- '*'
9+
branches-ignore:
10+
- 'main'
11+
- 'v[0-9]+.[0-9]+'
12+
paths-ignore:
13+
- 'CHANGELOG.md'
14+
- '.changes/**'
15+
- 'version/VERSION'
16+
- 'docs/**'
17+
18+
# This workflow runs for not-yet-reviewed external contributions and so it
19+
# intentionally has no write access and only limited read access to the
20+
# repository.
21+
permissions:
22+
contents: read
23+
24+
jobs:
25+
quick-checks:
26+
uses: ./.github/workflows/reusable/checks.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'Quick Checks: protected branches & tags'
2+
3+
on:
4+
# We always run checks on:
5+
# - PR merges to main
6+
# - PR merges to release branches
7+
push:
8+
branches:
9+
- 'main'
10+
- 'v[0-9]+.[0-9]+'
11+
tags:
12+
- 'v[0-9]+.[0-9]+.[0-9]+*'
13+
14+
# This workflow runs for not-yet-reviewed external contributions and so it
15+
# intentionally has no write access and only limited read access to the
16+
# repository.
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
quick-checks:
22+
uses: ./.github/workflows/reusable/checks.yml
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Quick Checks: pull requests'
2+
3+
on:
4+
# We only run checks on pull request events:
5+
# - If there are changes outside the ignored, non-code paths below
6+
pull_request:
7+
types:
8+
- opened
9+
- ready_for_review
10+
- reopened
11+
- synchronize
12+
paths-ignore:
13+
- 'CHANGELOG.md'
14+
- '.changes/**'
15+
- 'version/VERSION'
16+
- 'docs/**'
17+
18+
# This workflow runs for not-yet-reviewed external contributions and so it
19+
# intentionally has no write access and only limited read access to the
20+
# repository.
21+
permissions:
22+
contents: read
23+
24+
jobs:
25+
quick-checks:
26+
uses: ./.github/workflows/reusable/checks.yml

0 commit comments

Comments
 (0)