Skip to content

Commit c0dd265

Browse files
authored
ci(l1,l2): avoid running CI tests on docs-only changes (#5750)
**Motivation** <!-- Why does this pull request exist? What are its goals? --> Changes to docs are slow because of waiting pointless tests. **Description** <!-- A clear and concise general description of the changes this PR introduces --> Avoid running tests if the changes are only in `docs/`. According to [GH docs](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#example-excluding-paths): > If any path names do not match patterns in paths-ignore, even if some path names match the patterns, the workflow will run. So we are guaranteed that the tests are going to run if there is at least one non-docs change <!-- Link to issues: Resolves #111, Resolves #222 --> Resolves #3323
1 parent 633297b commit c0dd265

File tree

6 files changed

+22
-0
lines changed

6 files changed

+22
-0
lines changed

.github/workflows/main_prover.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: L2 (SP1 Backend)
33
on:
44
push:
55
branches: ["main"]
6+
paths-ignore:
7+
- "docs/**"
68
pull_request:
79
paths:
810
- ".github/workflows/main_prover.yaml"

.github/workflows/pr-main_l1.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: L1
22
on:
33
push:
44
branches: ["main"]
5+
paths-ignore:
6+
- "docs/**"
57
merge_group:
68
pull_request:
79
branches: ["**"]
10+
paths-ignore:
11+
- "docs/**"
812

913
permissions:
1014
contents: read

.github/workflows/pr-main_l1_l2_dev.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: L2 Dev
22
on:
33
push:
44
branches: ["main"]
5+
paths-ignore:
6+
- "docs/**"
57
merge_group:
68
pull_request:
79
branches: ["**"]
10+
paths-ignore:
11+
- "docs/**"
812

913
permissions:
1014
contents: read

.github/workflows/pr-main_l2.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: L2 (without proving)
22
on:
33
push:
44
branches: ["main"]
5+
paths-ignore:
6+
- "docs/**"
57
merge_group:
68
pull_request:
79
branches: ["**"]
10+
paths-ignore:
11+
- "docs/**"
812
workflow_dispatch:
913

1014
permissions:

.github/workflows/pr-main_l2_prover.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ name: L2 Prover
22
on:
33
push:
44
branches: ["main"]
5+
paths-ignore:
6+
- "docs/**"
57
pull_request:
68
branches: ["**"]
9+
paths-ignore:
10+
- "docs/**"
711
workflow_dispatch:
812

913
permissions:

.github/workflows/pr-main_l2_tdx_build.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ name: L2 TDX build
22
on:
33
push:
44
branches: ["main"]
5+
paths-ignore:
6+
- "docs/**"
57
pull_request:
68
branches: ["**"]
9+
paths-ignore:
10+
- "docs/**"
711

812
permissions:
913
contents: read

0 commit comments

Comments
 (0)