diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a0ac5a3..bb0c260 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,9 +22,9 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16 - name: install pnpm @@ -45,3 +45,18 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: projectPath: src-tauri + + fmt: + runs-on: ubuntu-latest + name: Run cargo fmt on stable + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - name: Install Rust stable toolchain + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + - name: cargo fmt --check + run: cargo fmt --check + working-directory: src-tauri