2022-11-03 22:38:14 +00:00
|
|
|
name: Format check on pull request
|
2022-12-03 12:45:04 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'Myriad/**'
|
|
|
|
- 'PluralKit.API/**'
|
|
|
|
- 'PluralKit.Bot/**'
|
|
|
|
- 'PluralKit.Core/**'
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'Myriad/**'
|
|
|
|
- 'PluralKit.API/**'
|
|
|
|
- 'PluralKit.Bot/**'
|
|
|
|
- 'PluralKit.Core/**'
|
|
|
|
|
2022-11-03 22:38:14 +00:00
|
|
|
jobs:
|
|
|
|
dotnet-format:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Add dotnet-format problem matcher
|
|
|
|
uses: xt0rted/dotnet-format-problem-matcher@v1
|
|
|
|
|
|
|
|
- name: Restore dotnet tools
|
|
|
|
uses: xt0rted/dotnet-tool-restore@v1
|
|
|
|
|
|
|
|
- name: Run dotnet format
|
2022-11-03 23:06:52 +00:00
|
|
|
uses: PluralKit/dotnet-format@fix/net6
|