forked from emyhrberg/ModReloader
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.12 KB
/
lint.yml
File metadata and controls
46 lines (37 loc) · 1.12 KB
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
38
39
40
41
42
43
44
45
46
name: .NET Lint
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
dotnet-lint:
runs-on: windows-latest
env:
TargetFramework: net8.0
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Download tModLoader
run: |
curl -s -L https://github.com/tModLoader/tModLoader/releases/latest/download/tModLoader.zip -o tModLoader.zip
- name: Extract tModLoader
run: |
unzip -q -o tModLoader.zip -d ../tModLoader
rm tModLoader.zip
- name: Create tModLoader.targets
shell: bash
run: |
cat >> ../tModLoader.targets << EOF
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="tModLoader\tMLMod.targets" />
</Project>
EOF
- name: Lint
run: dotnet format style ModReloader.sln --verify-no-changes