Skip to content

refactor

refactor #19

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Install clippy
run: rustup component add clippy
- name: Install rustfmt
run: rustup component add rustfmt
- name: Run clippy for native
run: cargo clippy --all --all-targets -- -D warnings
- name: Run fmt
run: cargo fmt -- --check
- name: Run tests
run: cargo test --all --all-targets -- --nocapture