Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ permissions:
# One run at a time: Context7's anonymous quota is shared.
concurrency:
group: bench-${{ github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
bench:
Expand Down
26 changes: 25 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:

concurrency:
group: ci-${{ github.event.pull_request.number || github.event.merge_group.head_sha || github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
plain-language:
Expand Down Expand Up @@ -43,11 +43,35 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# Not skipped at job level: a skipped matrix job reports an unexpanded
# name and would leave the required `test (<os>)` checks pending. Instead
# the job always runs and its heavy steps are skipped for pull requests
# that touch only files no test reads.
permissions:
contents: read
pull-requests: read
steps:
- uses: dorny/paths-filter@0e4a8c6effa4802afeda77dc8d303f8176d7dfad # v3.0.4
id: c
if: github.event_name == 'pull_request'
with:
predicate-quantifier: every
filters: |
code:
- '**'
- '!.github/ISSUE_TEMPLATE/**'
- '!LICENSE'
- '!CHANGELOG.md'
- '!CONTRIBUTING.md'
- '!SECURITY.md'
- uses: actions/checkout@v7
if: github.event_name != 'pull_request' || steps.c.outputs.code != 'false'
- uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stable
if: github.event_name != 'pull_request' || steps.c.outputs.code != 'false'
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2
if: github.event_name != 'pull_request' || steps.c.outputs.code != 'false'
- run: cargo test --workspace --locked
if: github.event_name != 'pull_request' || steps.c.outputs.code != 'false'

checks:
name: manifests, smoke, docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:

concurrency:
group: pages
cancel-in-progress: true
cancel-in-progress: false

jobs:
build:
Expand Down
Loading