From e0cd81cab4cc057c3d00877ede902faa4d836340 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Mon, 7 Mar 2022 21:35:34 -0800 Subject: [PATCH] github: use `actions-rs/cargo` instead of `run` From https://github.com/actions-rs/cargo#use-cases, it sounds like errors may be presented in a nicer way if we use `actions-rs/cargo` instead of a simple `run`, so let's try it. --- .github/workflows/build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0a589776..d2ea1be2c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,11 +22,15 @@ jobs: override: true profile: minimal - name: Build - run: | - cargo build --workspace --verbose + uses: actions-rs/cargo@v1 + with: + command: build + args: --workspace --verbose - name: Test - run: | - cargo test --workspace --verbose + uses: actions-rs/cargo@v1 + with: + command: test + args: --workspace --verbose env: RUST_BACKTRACE: 1