From e1ba6f81c533d8112e29f224eeae3fbd15b5be4c Mon Sep 17 00:00:00 2001 From: James Sturtevant Date: Thu, 21 Mar 2024 19:09:26 +0000 Subject: [PATCH] Add check-all command Add convenient helper make function and use it in CI Signed-off-by: James Sturtevant --- .github/workflows/bvt.yml | 4 +--- Makefile | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bvt.yml b/.github/workflows/bvt.yml index af542e3..ba6f519 100644 --- a/.github/workflows/bvt.yml +++ b/.github/workflows/bvt.yml @@ -12,9 +12,7 @@ jobs: uses: actions/checkout@v3 - name: Check run: | - make check - make -C compiler check - make -C ttrpc-codegen check + make check-all make: name: Build diff --git a/Makefile b/Makefile index 97e058b..c495653 100644 --- a/Makefile +++ b/Makefile @@ -32,3 +32,9 @@ endif check: cargo fmt --all -- --check cargo clippy --all-targets --all-features -- -D warnings + +.PHONY: check-all +check-all: + $(MAKE) check + $(MAKE) -C compiler check + $(MAKE) -C ttrpc-codegen check