mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
chore: update CI dotnet-format action
This commit is contained in:
parent
e4ad346554
commit
d4611b3769
1 changed files with 20 additions and 15 deletions
19
.github/workflows/dotnet.yml
vendored
19
.github/workflows/dotnet.yml
vendored
|
|
@ -21,26 +21,31 @@ jobs:
|
||||||
name: 'run .net tests'
|
name: 'run .net tests'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Setup .NET Core
|
- name: Setup .NET Core
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
dotnet-version: 8.0.x
|
dotnet-version: 8.0.x
|
||||||
|
|
||||||
- name: Run automated tests
|
- name: Run automated tests
|
||||||
run: dotnet test --configuration Release
|
run: dotnet test --configuration Release
|
||||||
|
|
||||||
dotnet-format:
|
dotnet-format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup .NET Core
|
||||||
|
uses: actions/setup-dotnet@v1
|
||||||
|
with:
|
||||||
|
dotnet-version: 8.0.x
|
||||||
|
|
||||||
- name: Add dotnet-format problem matcher
|
- name: Add dotnet-format problem matcher
|
||||||
uses: xt0rted/dotnet-format-problem-matcher@v1
|
uses: xt0rted/dotnet-format-problem-matcher@v1
|
||||||
|
|
||||||
- name: Restore dotnet tools
|
- name: Run dotnet-format
|
||||||
uses: xt0rted/dotnet-tool-restore@v1
|
run: dotnet format --no-restore --verify-no-changes
|
||||||
|
|
||||||
- name: Run dotnet format
|
|
||||||
uses: PluralKit/dotnet-format@fix/net6
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue