Files
Pal3.Unity/.github/workflows/code-style.yml
Jiaqi (0x7c13) Liu aace970ebb feat(battle): project native HUD state and input commands
Add the presentation assembly and tests for command routing, lineup selection, floating numbers and stage messages.
2026-11-19 01:13:08 +08:00

45 lines
1.3 KiB
YAML

name: Code style
on:
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
csharp-format:
name: C# formatting (PAL3 and PAL3A)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v5.3.0
with:
global-json-file: global.json
- name: Test formatter enforcement
run: dotnet test tools/CodeStyle.Tests
- name: Verify .NET tool source formatting
run: |
dotnet format whitespace tools/CodeStyle --no-restore --verify-no-changes
dotnet format whitespace tools/CodeStyle.Tests --no-restore --verify-no-changes
- name: Verify changed C# formatting
env:
BASE_REF: ${{ github.event.pull_request.base.sha }}
run: dotnet run --project tools/CodeStyle -- --check --base "$BASE_REF"
battle-rules:
name: Battle rules (PAL3 and PAL3A)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
- uses: actions/setup-dotnet@v5.3.0
with:
global-json-file: global.json
- name: Run engine-independent battle tests
run: dotnet test tools/Battle.Tests