61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: ["**"]
|
|
pull_request:
|
|
|
|
jobs:
|
|
windows-baseline:
|
|
name: Windows baseline
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: npm
|
|
|
|
- name: Set up Rust toolchain
|
|
run: rustup show
|
|
|
|
- name: Install frontend dependencies
|
|
run: npm ci
|
|
|
|
- name: Run frontend tests
|
|
run: npm test -- --run
|
|
|
|
- name: Build frontend
|
|
run: npm run build
|
|
|
|
- name: Check Rust formatting
|
|
working-directory: src-tauri
|
|
run: cargo fmt --all -- --check
|
|
|
|
- name: Run Rust lints
|
|
working-directory: src-tauri
|
|
run: cargo clippy --all-targets --all-features -- -D warnings
|
|
|
|
- name: Run Rust tests
|
|
working-directory: src-tauri
|
|
run: cargo test --all-targets
|
|
|
|
- name: Check Tauri environment
|
|
run: npm run tauri -- info
|
|
|
|
- name: Plan control app installer
|
|
shell: pwsh
|
|
run: .\scripts\install-control-app.ps1 -PlanOnly
|
|
|
|
- name: Plan ProxiFyre installer
|
|
shell: pwsh
|
|
run: .\scripts\install-proxyfier.ps1 -PlanOnly
|
|
|
|
- name: Plan sing-box installer
|
|
shell: pwsh
|
|
run: .\scripts\install-singbox.ps1 -PlanOnly
|