Repository navigation
91 lines (76 loc) · 2.06 KB
/
Copy pathci.yml
File metadata and controls
91 lines (76 loc) · 2.06 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
81
82
83
84
85
86
87
88
89
90
91
name: CI
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
jobs:
build-test:
name: Build & Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- windows-latest
- ubuntu-latest
- macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore
run: dotnet restore RVZStudio.sln
- name: Build
run: dotnet build RVZStudio.sln --configuration Release --no-restore
- name: Test
run: >-
dotnet test RVZStudio.Tests/RVZStudio.Tests.csproj
--configuration Release
--no-build
--verbosity normal
--logger "trx;LogFileName=test-results.trx"
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}
path: '**/test-results.trx'
if-no-files-found: ignore
publish-smoke-test:
name: Publish Smoke Test (${{ matrix.rid }})
runs-on: ubuntu-latest
needs: build-test
strategy:
fail-fast: false
matrix:
rid:
- linux-x64
- linux-arm64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Publish
shell: pwsh
run: ./publish.ps1 -Rids ${{ matrix.rid }} -NoZip
- name: Verify publish output
shell: pwsh
run: |
$files = Get-ChildItem "publish/${{ matrix.rid }}" -File
if ($files.Count -eq 0) { throw "Publish output is empty" }
$files | Select-Object Name, Length