-
Notifications
You must be signed in to change notification settings - Fork 0
136 lines (110 loc) · 3.4 KB
/
Copy pathValidate.yml
File metadata and controls
136 lines (110 loc) · 3.4 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
name: Validate
on:
pull_request:
branches: [ main ]
workflow_dispatch:
permissions: { }
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@v6
with:
fetch-depth: 0
- name: Setup .NET 10.0.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: SetupBuildInfo
id: SetupBuildInfo
run: dotnet run --project _atom/_atom.csproj -- SetupBuildInfo --skip --headless
PackProjects:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET 10.0.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: PackProjects
id: PackProjects
run: dotnet run --project _atom/_atom.csproj -- PackProjects --skip --headless
TestProjects:
runs-on: ubuntu-latest
strategy:
matrix:
test-framework: [ net8.0, net9.0, net10.0 ]
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET 10.0.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Setup .NET 8.0.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
- name: Setup .NET 9.0.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: 9.0.x
- name: TestProjects
id: TestProjects
run: dotnet run --project _atom/_atom.csproj -- TestProjects --skip --headless
env:
test-framework: ${{ matrix.test-framework }}
build-slice: ${{ matrix.test-framework }}
CheckPrForBreakingChanges:
permissions:
checks: write
contents: write
id-token: write
pull-requests: write
needs: [ SetupBuildInfo ]
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET 10.0.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: CheckPrForBreakingChanges
id: CheckPrForBreakingChanges
run: dotnet run --project _atom/_atom.csproj -- CheckPrForBreakingChanges --skip --headless
env:
build-version: ${{ needs.SetupBuildInfo.outputs.build-version }}
github-token: ${{ secrets.GITHUB_TOKEN }}
github-pull-request-number: ${{ github.event.number }}
WaitForCopilotReview:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET 10.0.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: WaitForCopilotReview
id: WaitForCopilotReview
run: dotnet run --project _atom/_atom.csproj -- WaitForCopilotReview --skip --headless
env:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-pull-request-number: ${{ github.event.number }}