-
Notifications
You must be signed in to change notification settings - Fork 41
77 lines (59 loc) · 2 KB
/
Copy pathverify.yaml
File metadata and controls
77 lines (59 loc) · 2 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Linux & Windows CI
on:
push:
pull_request:
# Cancel superseded runs on the same branch/PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6 # v4.2.2
with:
fetch-depth: 0
- run: |
git fetch --prune --tags
echo exit code $?
git tag --list
- uses: actions/setup-dotnet@v5 # v4.3.1
with:
dotnet-version: 10.0.x
- name: Prepare
run: cmake --version && git submodule init && git submodule update
- name: Build
run: dotnet build -c Debug
- name: SmokeTest
run: dotnet src/EditorConfig.App/bin/Debug/net10.0/EditorConfig.App.dll .editorconfig src/EditorConfig.Tests/MiniMatcherTests.cs
- name: Core tests
run: 'cmake . && ctest . -E "max_property_(name|value)|max_section_name_ignore|spaces_in_middle_key|octothorpe_in_value"'
- name: Unit tests
# TUnit uses Microsoft.Testing.Platform; `dotnet run` avoids the deprecated VSTest path on .NET 10.
run: dotnet run --project src/EditorConfig.Tests -c Debug
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6 # v4.2.2
with:
fetch-depth: 0
- run: |
git fetch --prune --tags
echo exit code $?
git tag --list
- uses: actions/setup-dotnet@v5 # v4.3.1
with:
dotnet-version: 10.0.x
- name: Prepare
shell: cmd
run: cmake --version && git submodule init && git submodule update
- name: Build
shell: cmd
run: dotnet build -c Debug
- name: Core tests
shell: cmd
run: 'cmake . && ctest . -C Debug -E "max_property_(name|value)|max_section_name_ignore|spaces_in_middle_key|octothorpe_in_value|windows_separator2"'
- name: Unit tests
run: dotnet run --project src/EditorConfig.Tests -c Debug