Skip to content

Fix some clippy issues found via rust update. (#148) #2

Fix some clippy issues found via rust update. (#148)

Fix some clippy issues found via rust update. (#148) #2

Workflow file for this run

name: Continuous integration
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustc --version
- run: cargo check
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustc --version
- run: cargo test
integration_test:
name: Client Integration Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build container and run simulator tests in it
run: cd client && docker compose build && docker compose run simulator_tests
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustc --version
- run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustc --version
- run: cargo clippy --all-targets -- -D warnings
docs:
name: Docs
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v4
- run: rustc --version
- run: cargo doc
miri:
name: Miri UB Test Suite
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v4
- run: rustup default nightly
- run: rustup component add miri
- run: rustc --version
# trybuild uses stat systemcall which is not supported by miri
- run: cargo miri test -- --skip unionify