mirror of
https://github.com/0x7c13/Pal3.Unity.git
synced 2026-11-26 17:38:10 +08:00
Add the presentation assembly and tests for command routing, lineup selection, floating numbers and stage messages.
45 lines
1.3 KiB
YAML
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
|