-
Notifications
You must be signed in to change notification settings - Fork 28
40 lines (32 loc) · 1.21 KB
/
ui-test-shim.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Catch all the things we ignore in the ui-test workflow
name: ui-test-shim
on:
pull_request:
paths:
# catch all workflows except the ui-test
- ".github/workflows/**"
- "!.github/workflows/ui-test.yaml"
# ignore LFAI-UI things
- "!src/leapfrogai_ui/**"
- "!packages/ui/**"
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: ui-test-skip-${{ github.ref }}
cancel-in-progress: true
jobs:
ui-test:
runs-on: ubuntu-latest
steps:
- name: Skipped
run: |
echo skipped