From e3541e5c41503de86575890308b213fda28488d9 Mon Sep 17 00:00:00 2001 From: kaiwitt Date: Sat, 28 Aug 2021 09:33:24 +0200 Subject: [PATCH] Add GitHub action --- workflows/cargo.yml | 17 +++++++++++++++++ workflows/clippy.yml | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 workflows/cargo.yml create mode 100644 workflows/clippy.yml diff --git a/workflows/cargo.yml b/workflows/cargo.yml new file mode 100644 index 0000000..9ec5201 --- /dev/null +++ b/workflows/cargo.yml @@ -0,0 +1,17 @@ +on: [push] + +name: CI + +jobs: + build_and_test: + name: cargo_test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - uses: actions-rs/cargo@v1 + with: + command: test + args: --release --all-features \ No newline at end of file diff --git a/workflows/clippy.yml b/workflows/clippy.yml new file mode 100644 index 0000000..6010bf2 --- /dev/null +++ b/workflows/clippy.yml @@ -0,0 +1,12 @@ +on: push +name: Clippy check +jobs: + clippy_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - run: rustup component add clippy + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features