mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
Bumps the github-actions group with 2 updates in the / directory: [actions/checkout](https://github.com/actions/checkout) and [taiki-e/install-action](https://github.com/taiki-e/install-action). Bumps the github-actions group with 1 update in the /.github/actions/setup/directories directory: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0...3d3c42e5aac5ba805825da76410c181273ba90b1) Updates `taiki-e/install-action` from 2.83.4 to 2.84.0 - [Release notes](https://github.com/taiki-e/install-action/releases) - [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/taiki-e/install-action/compare/07b4745e0c39a41822af610387492e3e53aa222b...a6b2e2dcd845ddd7f509ce4f3ed3d922b80cc5d9) Updates `actions/checkout` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0...3d3c42e5aac5ba805825da76410c181273ba90b1) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: taiki-e/install-action dependency-version: 2.84.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
68 lines
2.1 KiB
YAML
68 lines
2.1 KiB
YAML
# Surface Rust warnings on PRs that touch any Rust code.
|
|
# Not a required check so we never block people over new warnings
|
|
# that might come from a new Rust version being released.
|
|
name: Rust warnings
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
paths:
|
|
- '**.rs'
|
|
- '!**.inc.rs'
|
|
merge_group:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
|
|
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
# Work around transient crates.io download failures (curl HTTP/2 framing / partial transfer)
|
|
CARGO_NET_RETRY: 10
|
|
CARGO_HTTP_MULTIPLEXING: false
|
|
|
|
jobs:
|
|
rust-warnings:
|
|
env:
|
|
GITPULLOPTIONS: --no-tags origin ${{ github.ref }}
|
|
|
|
runs-on: ubuntu-24.04
|
|
|
|
if: >-
|
|
${{!(false
|
|
|| contains(github.event.head_commit.message, '[DOC]')
|
|
|| contains(github.event.pull_request.title, '[DOC]')
|
|
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
|
|
|| (github.event.pull_request.user.login == 'dependabot[bot]' && !startsWith(github.head_ref, 'dependabot/cargo'))
|
|
)}}
|
|
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install Rust
|
|
run: rustup default beta
|
|
|
|
- name: Rust warnings
|
|
shell: bash
|
|
run: |
|
|
set -eu
|
|
cargo check --quiet --all-features --message-format=json \
|
|
| jq -r 'select(.message.level | IN("warning", "error")) | .message.rendered' \
|
|
| tee messages.txt
|
|
(exit "${PIPESTATUS[0]}") && ! grep --quiet '[^[:space:]]' messages.txt
|
|
|
|
- name: "📜 `rustdoc` warnings"
|
|
shell: bash
|
|
run: |
|
|
set -eu
|
|
cargo doc --document-private-items --all --no-deps --message-format=json \
|
|
| jq -r 'select(.message.level | IN("warning", "error")) | .message.rendered' \
|
|
| tee messages.txt
|
|
(exit "${PIPESTATUS[0]}") && ! grep --quiet '[^[:space:]]' messages.txt
|