Skip to content

build(deps): bump chrono-english from 0.1.8 to 0.2.0 #4573

build(deps): bump chrono-english from 0.1.8 to 0.2.0

build(deps): bump chrono-english from 0.1.8 to 0.2.0 #4573

Workflow file for this run

name: ci
on:
push:
branches: [master, release/*]
pull_request:
branches: [master, release/*]
permissions:
contents: read
pull-requests: write
actions: read
id-token: write
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
defaults:
run:
shell: bash -euo pipefail {0}
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Rust cache
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- name: Setup taplo
uses: uncenter/setup-taplo@b18c8c8302695fe63d6853bc004006215ac52b91 # v2
- name: Setup tombi
uses: tombi-toml/setup-tombi@603c3e90bc4382f3dd5c44573484db1c664102dd # v1.4.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Validate TOML configs and themes with taplo
run: taplo check
- name: Validate TOML configs and themes with tombi
run: tombi lint
- name: Install latest nightly
uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # v1
with:
toolchain: nightly
components: rustfmt
- name: Check formatting
run: cargo +nightly fmt --check --verbose --all
- name: markdownlint-cli2-action
uses: DavidAnson/markdownlint-cli2-action@21c1be1b93ad9ed58fa840aacc3f279cde2a72ff # v24.2.0
- name: Run Check
run: cargo check --locked --workspace
- name: Run Clippy
run: cargo clippy --locked --workspace --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --locked --workspace --verbose --benches
- name: Check for uncommitted changes after build
run: |
# Ensure that build.rs doesn't produce uncommitted changes
# This catches cases where:
# - Theme files are out of sync with schema version
# - Generated files weren't committed
# - Build scripts modified source files
# Check for modified files
if ! git diff --exit-code; then
echo "::error::Build produced uncommitted changes to tracked files"
echo "The following files were modified during build:"
git diff --name-only
echo ""
echo "Diff:"
git diff
echo ""
echo "Please run 'cargo build' locally and commit the changes."
exit 1
fi
# Check for untracked files (excluding target/ and other build artifacts)
UNTRACKED=$(git ls-files --others --exclude-standard | grep -v '^target/' | grep -v '\.build/' || true)
if [ -n "$UNTRACKED" ]; then
echo "::error::Build produced untracked files"
echo "The following untracked files were created during build:"
echo "$UNTRACKED"
echo ""
echo "Please run 'cargo build' locally and commit any generated files."
exit 1
fi
echo "✓ No uncommitted changes produced by build"
- name: Run tests
run: cargo test --locked --workspace --verbose
- name: Run executable
run: cargo run --locked
coverage:
runs-on: ubuntu-latest
env:
# renovate: datasource=crate depName=rustfilt
RUSTFILT_VERSION: "0.2.1"
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install latest toolchain
uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772 # v1
with:
toolchain: stable
- name: Setup Rust cache
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- name: Install coverage tools
uses: taiki-e/install-action@b6ff580856c41316412a0b9b60540fbc6f8c82cc # v2.86.7
with:
tool: rustfilt@${{ env.RUSTFILT_VERSION }}
- name: Generate code coverage
run: |
make coverage
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
use_oidc: true
test-nix:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Nix
uses: cachix/install-nix-action@13d8dd58da0234aa297dedd986986ccb8e7f3e24 # v31.11.1
- name: Cache Nix store
uses: cachix/cachix-action@5f2d7c5294214f71b873db4b969586b980625e71 # v17
with:
name: hl
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Setup Rust cache
uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- name: Run nix flake check
run: nix flake check --print-build-logs --all-systems --no-update-lock-file
- name: Check Nix formatting
run: |
nix fmt --no-update-lock-file
if ! git diff --exit-code; then
echo "Nix files are not formatted correctly"
exit 1
fi
- name: Run nix build
run: nix build --print-build-logs --no-update-lock-file