Skip to content

Improve code quality with linting fixes and cleanup #10

Improve code quality with linting fixes and cleanup

Improve code quality with linting fixes and cleanup #10

Workflow file for this run

name: Rust Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
# Install dependencies
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config
# Cache dependencies to speed up builds
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
# Run tests without treating warnings as errors
- name: Run tests
run: RUSTFLAGS="-A warnings" cargo test --all