diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cafe94f..f27d3b8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -17,11 +17,25 @@ jobs: - name: install just uses: extractions/setup-just@v1 - - name: setup + - name: install dependencies run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev glibc-source libc6 + - name: setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 9 + + - name: setup node + uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: "pnpm" # Set this to npm, yarn or pnpm. + + - name: install frontend dependencies + run: pnpm install + - name: Rust setup uses: dtolnay/rust-toolchain@nightly with: @@ -34,4 +48,4 @@ jobs: run: just test - name: Run lints - run: just test + run: just check diff --git a/justfile b/justfile index d31623b..1c615b4 100644 --- a/justfile +++ b/justfile @@ -21,16 +21,14 @@ fix: && format test: cargo test -rust-check: test lint +rust-check: lint ts-check: pnpm vue-tsc ci-check: actionlint -check: - rust-check - ts-check +check: rust-check ts-check pre-commit: #!/usr/bin/env sh