-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (66 loc) · 1.99 KB
/
Validate.yml
File metadata and controls
77 lines (66 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
name: Validate
permissions: { }
on:
workflow_dispatch:
pull_request:
branches:
- 'main'
jobs:
SetupBuildInfo:
runs-on: ubuntu-latest
outputs:
build-name: ${{ steps.SetupBuildInfo.outputs.build-name }}
build-id: ${{ steps.SetupBuildInfo.outputs.build-id }}
build-version: ${{ steps.SetupBuildInfo.outputs.build-version }}
build-timestamp: ${{ steps.SetupBuildInfo.outputs.build-timestamp }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: SetupBuildInfo
id: SetupBuildInfo
run: dotnet run --project _atom/_atom.csproj SetupBuildInfo --skip --headless
Pack:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Pack
id: Pack
run: dotnet run --project _atom/_atom.csproj Pack --skip --headless
Test:
strategy:
matrix:
job-runs-on: [ windows-latest, ubuntu-latest, macos-latest ]
test-framework: [ net8.0, net9.0, net10.0 ]
runs-on: ${{ matrix.job-runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Test
id: Test
run: dotnet run --project _atom/_atom.csproj Test --skip --headless
env:
job-runs-on: ${{ matrix.job-runs-on }}
test-framework: ${{ matrix.test-framework }}
build-slice: ${{ matrix.job-runs-on }}-${{ matrix.test-framework }}