天气组件、倒计时组件微调。引入浏览器组件。
This commit is contained in:
lincube
2026-03-04 03:41:59 +08:00
parent e8276c4d1e
commit 3d22c04a04
31 changed files with 3258 additions and 576 deletions

View File

@@ -1,17 +1,16 @@
name: Code Quality
name: Quality Check
on:
workflow_dispatch:
pull_request:
branches: [ main, master, dev, develop ]
push:
branches: [ main, master, dev, develop ]
workflow_dispatch:
env:
DOTNET_VERSION: '10.0.x'
jobs:
code-analysis:
analyze:
runs-on: windows-latest
permissions:
contents: read
@@ -19,7 +18,7 @@ jobs:
checks: write
steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
@@ -31,44 +30,12 @@ jobs:
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore dependencies
- name: Restore
run: dotnet restore
- name: Build projects
run: |
dotnet build LanMontainDesktop/LanMontainDesktop.csproj
dotnet build LanMontainDesktop.RecommendationBackend/LanMontainDesktop.RecommendationBackend.csproj
- name: Build
run: dotnet build -c Release --no-restore -v minimal
# 可以添加Qodana检查如果配置了token
# - name: Run Qodana Analysis
# uses: JetBrains/qodana-action@v2025.1
# with:
# pr-mode: true
# env:
# QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
# QODANA_ENDPOINT: 'https://qodana.cloud'
dotnet-format:
runs-on: windows-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore dependencies
run: dotnet restore
- name: Check code formatting
run: |
dotnet format --verify-no-changes --verbosity diagnostic || (
echo "::warning::Code formatting issues detected. Please run 'dotnet format' locally."
exit 0
)
- name: Check formatting
run: dotnet format --verify-no-changes --verbosity diagnostic || true
continue-on-error: true