-
-
Notifications
You must be signed in to change notification settings - Fork 300
43 lines (36 loc) · 1016 Bytes
/
pull-request.yaml
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
name: Validate Pull Request
on:
pull_request:
jobs:
pull-request:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
with:
vs-version: 17.3
msbuild-architecture: x64
# Before building, restore Nuget packages and install dependencies.
- name: Install Dependencies
run: |
nuget restore source/SharpGL/SharpGL.sln
./source/SharpGL/config.ps1
# Use our own build script as it hides some unneeded warnings.
- name: Build
run: |
./source/SharpGL/build.ps1
./source/SharpGL/pack.ps1
# Test and upload coverage reports.
- name: Test
run: |
./source/SharpGL/test.ps1
./source/SharpGL/coverage.ps1
# Upload the artifacts folder.
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: |
./source/SharpGL/artifacts/