From 782e795fff64edcd930179842f2945c744ec09a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Mon, 2 Sep 2024 13:54:46 +0200 Subject: [PATCH] Add github workflows for rust and typescript lint checks --- .github/workflows/check.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..57f03ea --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,31 @@ +name: radicle-desktop +on: push + +jobs: + lint-ts: + name: lint typescript + runs-on: ubuntu-latest + steps: + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "20.9.0" + - uses: actions/checkout@v4 + - run: npm ci + - run: npm run check + lint-rust: + name: lint rust + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./src-tauri + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + with: + workspaces: src-tauri -> target + - name: Run clippy + run: cargo clippy --all --tests + - name: Check formatting + run: cargo fmt --all --check