Skip to content

Open source housekeeping #103

Open source housekeeping

Open source housekeeping #103

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Add rustfmt and clippy
run: rustup component add rustfmt clippy
- name: Run cargo fmt
run: cargo fmt --check
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Run clippy (tests)
run: cargo clippy --tests
- name: Run clippy (benches)
run: cargo clippy --benches
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --all-features
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --release