Skip to content

Commit

Permalink
Create workflows for different scenarios where we'd want to run quick…
Browse files Browse the repository at this point in the history
… checks
  • Loading branch information
SarahFrench committed Feb 3, 2025
1 parent b1bf126 commit 4046b84
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/checks-merge-feature-branch.yml
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
22 changes: 22 additions & 0 deletions .github/workflows/checks-merge-protected-branch.yml
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
26 changes: 26 additions & 0 deletions .github/workflows/checks-pr-events.yml
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

0 comments on commit 4046b84

Please sign in to comment.