Skip to content

Commit

Permalink
chore: create shim e2e workflow (#377)
Browse files Browse the repository at this point in the history
* fix: correct typos in e2e workflow path triggers

* chore: create shim e2e workflow

The shim workflow runs when the real e2e workflow does not run. This allows us to have branch protection rules that expect the e2e workflow to pass
  • Loading branch information
YrrepNoj authored Apr 10, 2024
1 parent ab29743 commit 904ef22
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/e2e-shim.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Catch all the things we ignore in the e2e workflow
name: e2e Skip Shim
on:
pull_request:
paths:
# Catch updates to the .github directory, unless it is the e2e.yaml files
- ".github/**"
- "!.github/workflows/e2e.yaml"

# Catch docs and website things
- "**.md"
- "docs/**"
- "website/**"
- "netlify.toml"

# Catch generic github metadata files
- "CODEOWNERS"
- ".gitignore"
- "LICENSE"
- "pre-comimt-config.yaml"

# Catch pytests
- "tests/pytest/**"


permissions:
contents: read

# This is here to act as a shim for branch protection rules to work correctly.
# This is ugly but this seems to be the best way to do this since:
# - Job names in a workflow must be unique
# - When paths are ignored not all jobs are reported to the branch protection rules
# - Multiple jobs of the same name are still required by branch protection rules

# For more info see below:
# https://github.com/orgs/community/discussions/54877
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks

# Abort prior jobs in the same workflow / PR
concurrency:
group: e2e-skip-${{ github.ref }}
cancel-in-progress: true


jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: Skipped
run: |
echo skipped

0 comments on commit 904ef22

Please sign in to comment.