Files
LanMountainDesktop/.github/workflows/code-quality.yml
lincube c49677b958 chore: upgrade GitHub Actions to Node.js 24 compatible versions
- Upgrade actions/checkout from v4 to v7
- Upgrade actions/setup-dotnet from v4 to v5
- Upgrade actions/upload-artifact from v4 to v7
- Upgrade actions/download-artifact from v4 to v4 (already compatible)
- Upgrade ncipollo/release-action from v1 to v1.21.0

This addresses GitHub's deprecation of Node.js 20 and the upcoming
forced migration to Node.js 24 (effective June 2, 2026).
2026-06-23 17:28:59 +08:00

45 lines
1.1 KiB
YAML

name: Quality Check
on:
pull_request:
push:
branches: [ main, master, dev, develop ]
workflow_dispatch:
env:
DOTNET_VERSION: '10.0.x'
Solution_Name: LanMountainDesktop.slnx
DOTNET_gcServer: 1
jobs:
analyze:
runs-on: windows-latest
permissions:
contents: read
pull-requests: write
checks: write
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
submodules: recursive
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-quality: 'preview'
- name: Restore
run: dotnet restore ${{ env.Solution_Name }}
- name: Build
run: dotnet build ${{ env.Solution_Name }} -c Release --no-restore -v minimal
- name: Check formatting
run: dotnet format --verify-no-changes --verbosity diagnostic || true
continue-on-error: true