mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
chore: clean up github actions workflows
This commit is contained in:
parent
089cc9750f
commit
ba81191312
7 changed files with 79 additions and 101 deletions
46
.github/workflows/dotnet.yml
vendored
Normal file
46
.github/workflows/dotnet.yml
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
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@v1
|
||||
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@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
|
||||
uses: PluralKit/dotnet-format@fix/net6
|
||||
Loading…
Add table
Add a link
Reference in a new issue