Skip to content

Commit 51a3f53

Browse files
committed
Initial GitHub Actions action
1 parent 7898617 commit 51a3f53

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
vs:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Install .NET 6.0
18+
uses: actions/setup-dotnet@v1
19+
with:
20+
dotnet-version: '6.0.x'
21+
22+
- name: Restore NuGet packages (dotnet)
23+
run: dotnet restore src/ShaderTools.sln
24+
25+
- name: Restore NuGet packages (nuget)
26+
run: nuget restore src/ShaderTools.sln
27+
28+
- name: Setup MSBuild
29+
uses: microsoft/[email protected]
30+
31+
- name: Build
32+
run: msbuild src/ShaderTools.sln /p:Configuration=Release
33+
34+
- name: Test
35+
run: |
36+
dotnet test --configuration Release src/ShaderTools.CodeAnalysis.Tests/ShaderTools.CodeAnalysis.Tests.csproj
37+
dotnet test --configuration Release src/ShaderTools.CodeAnalysis.Hlsl.Tests/ShaderTools.CodeAnalysis.Hlsl.Tests.csproj
38+
dotnet test --configuration Release src/ShaderTools.CodeAnalysis.Hlsl.EditorFeatures.Tests/ShaderTools.CodeAnalysis.Hlsl.EditorFeatures.Tests.csproj
39+
dotnet test --configuration Release src/ShaderTools.CodeAnalysis.Hlsl.Features.Tests/ShaderTools.CodeAnalysis.Hlsl.Features.Tests.csproj
40+
dotnet test --configuration Release src/ShaderTools.CodeAnalysis.ShaderLab.Tests/ShaderTools.CodeAnalysis.ShaderLab.Tests.csproj
41+
42+
- name: Upload artifacts
43+
uses: actions/upload-artifact@v1
44+
with:
45+
name: VisualStudio
46+
path: 'src/ShaderTools.Editor.VisualStudio/bin/Release/ShaderTools.Editor.VisualStudio.vsix'

0 commit comments

Comments
 (0)