🎨 format code

This commit is contained in:
Tw93
2025-08-29 18:15:05 +08:00
parent 9cb5db8bd3
commit f573e30284
5 changed files with 16 additions and 18 deletions

View File

@@ -5,14 +5,14 @@ description: One-stop setup with smart presets
inputs:
mode:
description: 'Setup mode: full, node-only, rust-only, or build'
description: "Setup mode: full, node-only, rust-only, or build"
required: false
default: 'full'
default: "full"
outputs:
setup-complete:
description: Setup completion status
value: 'true'
value: "true"
runs:
using: composite
@@ -22,7 +22,7 @@ runs:
shell: bash
run: |
MODE="${{ inputs.mode }}"
# Validate and set flags in one pass
case "$MODE" in
full)
@@ -56,14 +56,14 @@ runs:
if: env.SETUP_NODE == 'true'
uses: pnpm/action-setup@v4
with:
version: '10.15.0'
version: "10.15.0"
run_install: false
- name: Setup Node.js
if: env.SETUP_NODE == 'true'
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: "22"
cache: pnpm
- name: Install dependencies
@@ -79,7 +79,7 @@ runs:
toolchain: stable
target: x86_64-unknown-linux-gnu
- name: Setup Rust for Windows
- name: Setup Rust for Windows
if: env.SETUP_RUST == 'true' && runner.os == 'Windows'
uses: dtolnay/rust-toolchain@stable
with:

View File

@@ -1,8 +1,8 @@
name: Build App With Pake CLI
env:
NODE_VERSION: '22'
PNPM_VERSION: '10.15.0'
NODE_VERSION: "22"
PNPM_VERSION: "10.15.0"
on:
workflow_dispatch:

View File

@@ -8,8 +8,8 @@ on:
workflow_dispatch:
env:
NODE_VERSION: '22'
PNPM_VERSION: '10.15.0'
NODE_VERSION: "22"
PNPM_VERSION: "10.15.0"
permissions:
actions: write
@@ -34,7 +34,6 @@ jobs:
- name: Setup Development Environment
uses: ./.github/actions/setup-env
- name: Auto-fix Prettier formatting
run: npx prettier --write . --ignore-unknown
@@ -66,7 +65,6 @@ jobs:
with:
mode: build
- name: Check EditorConfig compliance
uses: editorconfig-checker/action-editorconfig-checker@main
@@ -109,7 +107,7 @@ jobs:
run: cargo fmt --all -- --color=always --check
- name: Run Clippy lints
run: cargo hack --feature-powerset --exclude-features cli-build --no-dev-deps clippy # cspell:disable-line
run: cargo hack --feature-powerset --exclude-features cli-build --no-dev-deps clippy # cspell:disable-line
cli-tests:
name: CLI Tests (${{ matrix.os }})
@@ -163,7 +161,6 @@ jobs:
with:
mode: build
- name: Build CLI
run: pnpm run cli:build

View File

@@ -1,8 +1,8 @@
name: Build Single Popular App
env:
NODE_VERSION: '22'
PNPM_VERSION: '10.15.0'
NODE_VERSION: "22"
PNPM_VERSION: "10.15.0"
on:
workflow_dispatch:
@@ -151,7 +151,7 @@ jobs:
retention-days: 3
- name: Upload to release
uses: ncipollo/release-action@v1 # cspell:disable-line
uses: ncipollo/release-action@v1 # cspell:disable-line
if: startsWith(github.ref, 'refs/tags/')
with:
allowUpdates: true

View File

@@ -21,3 +21,4 @@ cli.js
*.wxs
*.plist
*.toml
.github/workflows/