mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
name: .net checks
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- .github/workflows/dotnet.yml
|
|
- 'Myriad/**'
|
|
- 'PluralKit.API/**'
|
|
- 'PluralKit.Bot/**'
|
|
- 'PluralKit.Core/**'
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/dotnet.yml
|
|
- 'Myriad/**'
|
|
- 'PluralKit.API/**'
|
|
- 'PluralKit.Bot/**'
|
|
- 'PluralKit.Core/**'
|
|
|
|
jobs:
|
|
test:
|
|
name: 'run .net tests'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Setup .NET Core
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Run automated tests
|
|
run: dotnet test --configuration Release
|
|
|
|
dotnet-format:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repo
|
|
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
|
|
uses: xt0rted/dotnet-format-problem-matcher@v1
|
|
|
|
- name: Run dotnet-format
|
|
run: dotnet format --no-restore --verify-no-changes
|