From 360c4d1849a3ddfa1347ccad5dfb776c000517b9 Mon Sep 17 00:00:00 2001 From: Morgan McCauley Date: Fri, 2 Jun 2023 08:58:29 +1200 Subject: [PATCH] ci: Fix rust CI check workflow --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 107bcab6f..299eea0ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,8 +3,12 @@ name: Rust on: push: branches: [ main ] + paths: + - "indexer/**" pull_request: - branches: [ main, staging, production ] + branches: [ main, stable ] + paths: + - "indexer/**" env: CARGO_TERM_COLOR: always @@ -17,6 +21,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Run check + working-directory: ./indexer run: cargo check rustfmt: @@ -33,7 +38,7 @@ jobs: profile: minimal components: rustfmt - name: Check formatting - - working-directory: ./indexer + working-directory: ./indexer run: | cargo fmt -- --check @@ -51,6 +56,6 @@ jobs: profile: minimal components: clippy - name: Clippy check - - working-directory: ./indexer + working-directory: ./indexer run: | cargo clippy