🎨 format code
This commit is contained in:
14
.github/actions/setup-env/action.yml
vendored
14
.github/actions/setup-env/action.yml
vendored
@@ -5,14 +5,14 @@ description: One-stop setup with smart presets
|
|||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
mode:
|
mode:
|
||||||
description: 'Setup mode: full, node-only, rust-only, or build'
|
description: "Setup mode: full, node-only, rust-only, or build"
|
||||||
required: false
|
required: false
|
||||||
default: 'full'
|
default: "full"
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
setup-complete:
|
setup-complete:
|
||||||
description: Setup completion status
|
description: Setup completion status
|
||||||
value: 'true'
|
value: "true"
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
@@ -22,7 +22,7 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
MODE="${{ inputs.mode }}"
|
MODE="${{ inputs.mode }}"
|
||||||
|
|
||||||
# Validate and set flags in one pass
|
# Validate and set flags in one pass
|
||||||
case "$MODE" in
|
case "$MODE" in
|
||||||
full)
|
full)
|
||||||
@@ -56,14 +56,14 @@ runs:
|
|||||||
if: env.SETUP_NODE == 'true'
|
if: env.SETUP_NODE == 'true'
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
version: '10.15.0'
|
version: "10.15.0"
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
if: env.SETUP_NODE == 'true'
|
if: env.SETUP_NODE == 'true'
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: "22"
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -79,7 +79,7 @@ runs:
|
|||||||
toolchain: stable
|
toolchain: stable
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
- name: Setup Rust for Windows
|
- name: Setup Rust for Windows
|
||||||
if: env.SETUP_RUST == 'true' && runner.os == 'Windows'
|
if: env.SETUP_RUST == 'true' && runner.os == 'Windows'
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
|
|||||||
4
.github/workflows/pake-cli.yaml
vendored
4
.github/workflows/pake-cli.yaml
vendored
@@ -1,8 +1,8 @@
|
|||||||
name: Build App With Pake CLI
|
name: Build App With Pake CLI
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: '22'
|
NODE_VERSION: "22"
|
||||||
PNPM_VERSION: '10.15.0'
|
PNPM_VERSION: "10.15.0"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|||||||
9
.github/workflows/quality-and-test.yml
vendored
9
.github/workflows/quality-and-test.yml
vendored
@@ -8,8 +8,8 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: '22'
|
NODE_VERSION: "22"
|
||||||
PNPM_VERSION: '10.15.0'
|
PNPM_VERSION: "10.15.0"
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
actions: write
|
actions: write
|
||||||
@@ -34,7 +34,6 @@ jobs:
|
|||||||
- name: Setup Development Environment
|
- name: Setup Development Environment
|
||||||
uses: ./.github/actions/setup-env
|
uses: ./.github/actions/setup-env
|
||||||
|
|
||||||
|
|
||||||
- name: Auto-fix Prettier formatting
|
- name: Auto-fix Prettier formatting
|
||||||
run: npx prettier --write . --ignore-unknown
|
run: npx prettier --write . --ignore-unknown
|
||||||
|
|
||||||
@@ -66,7 +65,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
mode: build
|
mode: build
|
||||||
|
|
||||||
|
|
||||||
- name: Check EditorConfig compliance
|
- name: Check EditorConfig compliance
|
||||||
uses: editorconfig-checker/action-editorconfig-checker@main
|
uses: editorconfig-checker/action-editorconfig-checker@main
|
||||||
|
|
||||||
@@ -109,7 +107,7 @@ jobs:
|
|||||||
run: cargo fmt --all -- --color=always --check
|
run: cargo fmt --all -- --color=always --check
|
||||||
|
|
||||||
- name: Run Clippy lints
|
- 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:
|
cli-tests:
|
||||||
name: CLI Tests (${{ matrix.os }})
|
name: CLI Tests (${{ matrix.os }})
|
||||||
@@ -163,7 +161,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
mode: build
|
mode: build
|
||||||
|
|
||||||
|
|
||||||
- name: Build CLI
|
- name: Build CLI
|
||||||
run: pnpm run cli:build
|
run: pnpm run cli:build
|
||||||
|
|
||||||
|
|||||||
6
.github/workflows/single-app.yaml
vendored
6
.github/workflows/single-app.yaml
vendored
@@ -1,8 +1,8 @@
|
|||||||
name: Build Single Popular App
|
name: Build Single Popular App
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: '22'
|
NODE_VERSION: "22"
|
||||||
PNPM_VERSION: '10.15.0'
|
PNPM_VERSION: "10.15.0"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -151,7 +151,7 @@ jobs:
|
|||||||
retention-days: 3
|
retention-days: 3
|
||||||
|
|
||||||
- name: Upload to release
|
- 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/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
|
|||||||
@@ -21,3 +21,4 @@ cli.js
|
|||||||
*.wxs
|
*.wxs
|
||||||
*.plist
|
*.plist
|
||||||
*.toml
|
*.toml
|
||||||
|
.github/workflows/
|
||||||
|
|||||||
Reference in New Issue
Block a user