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