Skip to content

Commit e11dece

Browse files
authored
Merge pull request #74 from block65/chore/pr-path-filters
chore(ci): split PR workflow by path, skip CI on range/docs-only changes
2 parents 8116817 + 8be5712 commit e11dece

2 files changed

Lines changed: 38 additions & 18 deletions

File tree

.github/workflows/pr-website.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI (website)
2+
3+
on:
4+
pull_request:
5+
branches: ["main"]
6+
paths:
7+
- "website/**"
8+
- ".github/workflows/pr-website.yml"
9+
10+
concurrency:
11+
group: pr-website-${{ github.event.pull_request.number }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
lint-website:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v6
19+
20+
- uses: pnpm/action-setup@v4
21+
with:
22+
package_json_file: website/package.json
23+
24+
- name: Install dependencies
25+
run: pnpm install --frozen-lockfile
26+
working-directory: website
27+
28+
- name: Biome check
29+
run: pnpm check
30+
working-directory: website

.github/workflows/pr.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,23 @@ name: CI
33
on:
44
pull_request:
55
branches: ["main"]
6+
paths:
7+
- "crates/**"
8+
- "Cargo.toml"
9+
- "Cargo.lock"
10+
- "Dockerfile.cross-musl"
11+
- "bench/**"
12+
- ".github/workflows/pr.yml"
613

714
concurrency:
8-
group: pr-${{ github.event.pull_request.number }}
15+
group: pr-rust-${{ github.event.pull_request.number }}
916
cancel-in-progress: true
1017

1118
env:
1219
CARGO_TERM_COLOR: always
1320
CROSS_VERSION: v0.2.5
1421

1522
jobs:
16-
lint-website:
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: actions/checkout@v6
20-
21-
- uses: pnpm/action-setup@v4
22-
with:
23-
package_json_file: website/package.json
24-
25-
- name: Install dependencies
26-
run: pnpm install --frozen-lockfile
27-
working-directory: website
28-
29-
- name: Biome check
30-
run: pnpm check
31-
working-directory: website
32-
3323
lint:
3424
runs-on: ubuntu-latest
3525
steps:

0 commit comments

Comments
 (0)