Skip to content

build(deps): bump Homebrew/actions/setup-homebrew (#383) #857

build(deps): bump Homebrew/actions/setup-homebrew (#383)

build(deps): bump Homebrew/actions/setup-homebrew (#383) #857

Workflow file for this run

name: CI # Continuous Integration
on:
push:
branches:
- main
pull_request:
jobs:
changelog:
name: Changelog
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
# CD builds the release body out of this section, so a version bump that
# leaves the changelog on `## [Unreleased]` has to fail here rather than
# at the tag.
- name: Check release notes for the current version
run: |
version=$(grep -m 1 '^version = ' Cargo.toml | cut -d '"' -f 2)
bash scripts/release/extract-changelog.sh "$version" > /dev/null
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.91.1
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --all-features --workspace
env:
CLICOLOR_FORCE: true
TZ: 'Asia/Tokyo'
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.91.1
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.91.1
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Clippy check
run: cargo clippy --all-targets --all-features --workspace -- -D warnings
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.91.1
- uses: Swatinem/rust-cache@v2
- name: Check documentation
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps --document-private-items --all-features --workspace
coverage:
name: Code Coverage
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.91.1
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- uses: Swatinem/rust-cache@v2
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
env:
CLICOLOR_FORCE: true
TZ: 'Asia/Tokyo'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: false