Skip to content

fixing lint issue

fixing lint issue #64

Workflow file for this run

name: CI
on:
pull_request:
branches: [main, develop]
# Optionally, allow manual trigger for debugging
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup workspace dependencies
shell: bash
run: |
chmod +x scripts/setup-workspace.sh
./scripts/setup-workspace.sh
- name: Install protoc
uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.91.0
components: rustfmt, clippy
- name: Show Rust versions
run: |
rustc --version
cargo --version
rustfmt --version
- name: Cache Rust dependencies and build artifacts
uses: Swatinem/rust-cache@v2
with:
workspaces: ". -> target"
- name: Run lint checks and tests
if: matrix.os != 'windows-latest'
run: ./lint.sh --check --test
- name: Run tests (Windows)
if: matrix.os == 'windows-latest'
run: cargo test --all-features --verbose
- name: Build
run: cargo build --all-features --verbose