Skip to content

chore(lint): improve #[expect] reason detection in tokei scripts #67

chore(lint): improve #[expect] reason detection in tokei scripts

chore(lint): improve #[expect] reason detection in tokei scripts #67

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
permissions:
checks: write
contents: read
jobs:
test:
name: Test
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libasound2-dev \
libudev-dev \
libwayland-dev \
libxkbcommon-dev \
libxrandr-dev \
libx11-dev \
libxi-dev \
libxinerama-dev \
libxcursor-dev \
libgl1-mesa-dev \
pkg-config
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
shared-key: "ci-test"
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Install tokei
run: cargo install tokei
- name: Check formatting
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Lint checks
run: bash tokei_check.sh
- name: Build
run: cargo build --all-targets
- name: Run tests
run: cargo nextest run --verbose --no-tests=pass