diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml new file mode 100644 index 000000000..f8acd2b9b --- /dev/null +++ b/.github/workflows/rust-ci.yml @@ -0,0 +1,35 @@ +name: Rust CI +on: + push: + branches: [main] + paths: + - 'veza-chat-server/**' + - 'veza-stream-server/**' + pull_request: + branches: [main] + paths: + - 'veza-chat-server/**' + - 'veza-stream-server/**' + +jobs: + clippy-chat: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy + - name: Clippy lint + run: cargo clippy -- -D warnings + working-directory: veza-chat-server + + clippy-stream: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy + - name: Clippy lint + run: cargo clippy -- -D warnings + working-directory: veza-stream-server