Skip to content

Commit 8c6e9c7

Browse files
committed
👷 ci: remove paths-filter and simplify workflow dependencies
Refactor CI workflows to remove dorny/paths-filter and direct job dependencies. Benchmarks and docs deploy jobs now run based on file path triggers and actor checks, improving reliability and maintainability.
1 parent 2f682bd commit 8c6e9c7

File tree

2 files changed

+8
-30
lines changed

2 files changed

+8
-30
lines changed

‎.github/workflows/bench.yml‎

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ name: benchmarks
33
on:
44
push:
55
branches: ["main"]
6+
paths:
7+
- 'crates/mq-lang/**'
68
pull_request:
79
branches: ["main"]
10+
paths:
11+
- 'crates/mq-lang/**'
812

913
concurrency:
1014
group: "benchmarks"
@@ -14,24 +18,10 @@ env:
1418
CARGO_TERM_COLOR: always
1519

1620
jobs:
17-
changes:
18-
runs-on: ubuntu-latest
19-
if: github.actor != 'dependabot[bot]' && contains(github.event.commits.*.message, '[skip ci]') == false
20-
outputs:
21-
lang: ${{ steps.filter.outputs.lang }}
22-
steps:
23-
- uses: actions/checkout@v6
24-
- uses: dorny/paths-filter@v3
25-
id: filter
26-
with:
27-
filters: |
28-
lang:
29-
- 'crates/mq-lang/**'
30-
3121
benchmarks:
3222
needs: changes
3323
runs-on: ubuntu-latest
34-
if: ${{ needs.changes.outputs.lang == 'true' }}
24+
if: github.actor != 'dependabot[bot]' && contains(github.event.commits.*.message, '[skip ci]') == false
3525
steps:
3626
- uses: actions/checkout@v6
3727
- uses: actions-rust-lang/setup-rust-toolchain@v1

‎.github/workflows/pages.yml‎

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Deploy docs
33
on:
44
push:
55
branches: ["main"]
6+
paths:
7+
- 'docs/**'
8+
- 'packages/mq-playground/**'
69
workflow_dispatch:
710

811
permissions:
@@ -15,24 +18,9 @@ concurrency:
1518
cancel-in-progress: false
1619

1720
jobs:
18-
changes:
19-
runs-on: ubuntu-latest
20-
if: github.actor != 'dependabot[bot]' && contains(github.event.commits.*.message, '[skip ci]') == false
21-
outputs:
22-
docs: ${{ steps.filter.outputs.docs }}
23-
steps:
24-
- uses: actions/checkout@v6
25-
- uses: dorny/paths-filter@v3
26-
id: filter
27-
with:
28-
filters: |
29-
docs:
30-
- 'docs/**'
31-
3221
build_and_deploy:
3322
needs: changes
3423
runs-on: ubuntu-latest
35-
if: ${{ needs.changes.outputs.docs == 'true' }}
3624
steps:
3725
- name: Checkout
3826
uses: actions/checkout@v6

0 commit comments

Comments
 (0)