Skip to content

Commit ea0ea71

Browse files
elle-jxermicus
andauthored
Update workflows to skip tests for only .md files (#371)
When updating documentation Markdown files, long-running tests still run unnecessarily. With these changes, it will skip running test workflows when PRs only containing changes to such files are opened. Co-authored-by: xermicus <[email protected]>
1 parent b31e8a0 commit ea0ea71

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/test-llvm-builder.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- 'LLVM.lock'
88
- 'crates/llvm-builder/**'
99
- '.github/workflows/test-llvm-builder.yml'
10+
paths-ignore:
11+
- "**.md"
1012

1113
concurrency:
1214
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

.github/workflows/test-wasm.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: Test Wasm Version
22
on:
33
push:
44
branches: ["main"]
5+
paths-ignore:
6+
- "**.md"
57
pull_request:
68
branches: ["main"]
79
types: [opened, synchronize]
10+
paths-ignore:
11+
- "**.md"
812

913
concurrency:
1014
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

.github/workflows/test.yml

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

913
concurrency:
1014
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

0 commit comments

Comments
 (0)