From ee86412a22ecea9bd0ac8b48948d728744e2d403 Mon Sep 17 00:00:00 2001 From: Martin Huschenbett Date: Thu, 26 Sep 2024 19:33:37 +0200 Subject: [PATCH] Build and lint UI in CI --- .github/workflows/rust.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d783ee4..a1300b3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,11 +9,27 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Build + - uses: jetli/wasm-pack-action@v0.4.0 + - uses: pnpm/action-setup@v4 + with: + version: latest + - name: Build Rust run: cargo build --locked - - name: Format + - name: Format Rust run: cargo fmt -- --check - name: Clippy run: cargo clippy -- --deny warnings - - name: Test + - name: Test Rust run: cargo test --locked + - name: WASM + working-directory: rufus-wasm + run: wasm-pack build + - name: UI Install + working-directory: rufus-ui + run: pnpm install --frozen-lockfile + - name: UI Build + working-directory: rufus-ui + run: pnpm build + - name: UI Lint + working-directory: rufus-ui + run: pnpm lint