From ebedd58647686b05e6e64d6da1635a63222acf12 Mon Sep 17 00:00:00 2001 From: Chris Pryer <14341145+cnpryer@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:33:32 -0500 Subject: [PATCH] Use 'cargo insta test' in Makefile's test command (#777) --- .github/workflows/tests.yml | 12 ++++++++++++ Makefile | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6fe9383c3f..5b9a9dbea9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,6 +13,10 @@ jobs: with: toolchain: stable - uses: Swatinem/rust-cache@v2 + - name: Install cargo insta + uses: taiki-e/install-action@v2 + with: + tool: cargo-insta - name: Check run: make check - name: Test @@ -28,6 +32,10 @@ jobs: with: toolchain: stable - uses: Swatinem/rust-cache@v2 + - name: Install cargo insta + uses: taiki-e/install-action@v2 + with: + tool: cargo-insta - name: Check run: make check - name: Test @@ -43,6 +51,10 @@ jobs: with: toolchain: stable - uses: Swatinem/rust-cache@v2 + - name: Install cargo insta + uses: taiki-e/install-action@v2 + with: + tool: cargo-insta - name: Check run: make check - name: Test diff --git a/Makefile b/Makefile index f8677beacd..9573c4f1da 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ build: .PHONY: test test: - @cargo test --all + @cargo insta test --workspace --all-features .PHONY: check check: