From fc1cd86bcc511a162b2bbcbf910611c75e0e4615 Mon Sep 17 00:00:00 2001 From: Mark Lodato Date: Sat, 12 Mar 2022 09:27:47 -0500 Subject: [PATCH] Add CI file So we can make sure we maintain tests, clippy, and formatting for each PR. --- .github/workflows/rust.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..1726a04 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,24 @@ +name: Rust + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Clippy + run: cargo clippy --all-targets + - name: Rustfmt + run: cargo fmt --check -v + - name: Run tests + run: cargo test --verbose