From dfcb08bad475418126a739dc60b5a50110f0afa0 Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Fri, 2 Oct 2020 00:20:32 +0530 Subject: [PATCH] Add workflow for cargo-test --- .github/workflows/cargo-fmt.yml | 2 -- .github/workflows/cargo-test.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/cargo-test.yml diff --git a/.github/workflows/cargo-fmt.yml b/.github/workflows/cargo-fmt.yml index 3a36446..c4ac685 100644 --- a/.github/workflows/cargo-fmt.yml +++ b/.github/workflows/cargo-fmt.yml @@ -2,8 +2,6 @@ name: cargo-fmt on: push: - paths: - - "**/*.rs" pull_request: jobs: diff --git a/.github/workflows/cargo-test.yml b/.github/workflows/cargo-test.yml new file mode 100644 index 0000000..284d8dd --- /dev/null +++ b/.github/workflows/cargo-test.yml @@ -0,0 +1,20 @@ +name: cargo-test + +on: + push: + pull_request: + +jobs: + fmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: actions-rs/cargo@v1 + with: + command: test + args: --workspace --all-features --no-fail-fast