Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Fix rust CI check workflow #91

Merged
merged 1 commit into from
Jun 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,6 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Run check
working-directory: ./indexer
run: cargo check

rustfmt:
Expand All @@ -33,7 +38,7 @@ jobs:
profile: minimal
components: rustfmt
- name: Check formatting
- working-directory: ./indexer
working-directory: ./indexer
run: |
cargo fmt -- --check

Expand All @@ -51,6 +56,6 @@ jobs:
profile: minimal
components: clippy
- name: Clippy check
- working-directory: ./indexer
working-directory: ./indexer
run: |
cargo clippy