forked from Silkroad-Developer-Community/OasisBot
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 780 Bytes
/
Copy pathpull_request.yml
File metadata and controls
37 lines (29 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Pull Request
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Handle dependencies
run: dotnet restore OasisBot.sln
- name: Run CSharpier
run: |
dotnet new tool-manifest
dotnet tool install csharpier
dotnet tool run csharpier check .
- name: Build the application
run: msbuild /p:Configuration=Release /p:Platform=x86