From 58ebeb5f3e664acfd1cc1872350dfefb9a38a305 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Fri, 28 Oct 2022 00:04:59 -0400 Subject: [PATCH] Add basic CI --- .github/workflows/push.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/push.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..8aeb646 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,29 @@ +on: [push] + +name: Push +jobs: + build_and_test: + name: Rust project + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: Unit tests + uses: actions-rs/cargo@v1 + with: + command: test + args: --release + + - name: Clippy + uses: actions-rs/cargo@v1 + with: + command: clippy + + - name: Check Build + uses: actions-rs/cargo@v1 + with: + command: build + args: --bins --release