mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 22:48:07 -05:00
sbox-public: run formatting on it's own runner
This commit is contained in:
2
.github/workflows/pull_request_checks.yml
vendored
2
.github/workflows/pull_request_checks.yml
vendored
@@ -22,8 +22,6 @@ jobs:
|
||||
with:
|
||||
dotnet-version: '10.0.x'
|
||||
|
||||
- name: Format
|
||||
run: dotnet run --project .\engine\Tools\SboxBuild\SboxBuild.csproj -- format --verify
|
||||
|
||||
- name: Bootstrap
|
||||
run: .\Bootstrap.bat
|
||||
|
||||
27
public/.github/workflows/formatting.yml
vendored
Normal file
27
public/.github/workflows/formatting.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Formatting
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
format:
|
||||
runs-on: [ windows-latest ]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
clean: true
|
||||
fetch-depth: 1
|
||||
persist-credentials: false
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
dotnet-version: '10.0.x'
|
||||
|
||||
- name: Format
|
||||
run: dotnet run --project .\engine\Tools\SboxBuild\SboxBuild.csproj -- format --verify
|
||||
Reference in New Issue
Block a user