Repository navigation
58 lines (46 loc) · 1.49 KB
/
Copy pathci.yml
File metadata and controls
58 lines (46 loc) · 1.49 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
name: Build / Test
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
concurrency:
group: primetime-ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test-standard:
name: test-standard
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Verify governance documentation
run: |
test -f SECURITY.md
test -f CONTRIBUTING.md
test -f SUPPORT.md
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.x
- name: Validate release-notes sources for current version
run: >
dotnet run --project "Source/Tools/KZDev.PrimeTime.ReleaseAggregation.Cli/KZDev.PrimeTime.ReleaseAggregation.Cli.csproj" -c Release --
validate
--repository-root "${{ github.workspace }}"
- name: Restore
run: dotnet restore Source/KZDev.PrimeTime.slnx
- name: Build
run: dotnet build Source/KZDev.PrimeTime.slnx -c Release
- name: Test (net8.0)
run: dotnet test Source/KZDev.PrimeTime.slnx -c Release --no-build -f net8.0
- name: Test (net10.0)
run: dotnet test Source/KZDev.PrimeTime.slnx -c Release --no-build -f net10.0
- name: Upload Release artifacts
uses: actions/upload-artifact@v4
with:
name: test-release-artifacts
path: artifacts
if-no-files-found: error
retention-days: 7