From 49c944f5de224260b8307cf61de0d26e4f72354f Mon Sep 17 00:00:00 2001 From: Colin Marc Date: Thu, 25 Apr 2024 14:16:16 +0200 Subject: [PATCH] build: add tests to CI --- .github/workflows/tests.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..7c3ce2c --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,29 @@ +jobs: + check: + name: Tests + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + - uses: swatinem/rust-cache@v2 + - uses: actions/checkout@v2 + + - name: server cargo clippy + run: (cd mm-server && cargo clippy) + + - name: client cargo clippy + run: (cd mm-client && cargo clippy) + + - name: protocol cargo clippy + run: (cd mm-protocol && cargo clippy) + + - name: server tests + run: (cd mm-server && cargo test) + + - name: client tests + run: (cd mm-client && cargo test) + + - name: protocol tests + run: (cd mm-protocol && cargo test)