-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (67 loc) · 1.99 KB
/
Copy pathci.yml
File metadata and controls
80 lines (67 loc) · 1.99 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
78
79
80
name: CI
on:
push:
branches: [main]
paths-ignore:
- '**.md'
- '!CHANGELOG.md'
- 'LICENSE'
- '.gitignore'
- '.gitattributes'
- '.editorconfig'
- '.github/ISSUE_TEMPLATE/**'
pull_request:
branches: [main]
paths-ignore:
- '**.md'
- '!CHANGELOG.md'
- 'LICENSE'
- '.gitignore'
- '.gitattributes'
- '.editorconfig'
- '.github/ISSUE_TEMPLATE/**'
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
name: dotnet build + test
runs-on: windows-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Validate PowerShell and release scripts
shell: pwsh
run: |
./.github/scripts/Test-WorkflowSyntax.ps1
./.github/scripts/Test-NightlyBetaPlan.ps1
./.github/scripts/Test-UpdateChangelog.ps1
./.github/scripts/Test-GenerateReleaseNotes.ps1
./.github/scripts/Test-ReleaseVersionSequence.ps1
- name: Setup .NET 10
uses: actions/setup-dotnet@v6
with:
dotnet-version: "10.0.x"
- name: Restore
run: dotnet restore vrcresolver.slnx
- name: Install PowerShell analyzer
shell: pwsh
run: Install-Module PSScriptAnalyzer -Scope CurrentUser -Force
- name: Lint and format check
shell: pwsh
run: ./scripts/lint.ps1
- name: Build
run: dotnet build vrcresolver.slnx --configuration Release --no-restore -warnaserror
- name: Test
run: dotnet test src/VrcResolver.Tests/VrcResolver.Tests.csproj --configuration Release --no-build --logger "trx;LogFileName=test-results.trx" --results-directory ./test-results
- name: Upload test results
if: always()
uses: actions/upload-artifact@v7
with:
name: test-results
path: ./test-results
if-no-files-found: ignore