Skip to content

Commit 70e168d

Browse files
committed
(build) added azdo/github actions script
1 parent 47f2d4c commit 70e168d

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

.azurepipelines/artifacts-test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,13 @@ jobs:
1818
includeArtifacts: true
1919
- pwsh: ./build.ps1 -target Artifacts-Test -DockerDistro $(DISTRO) -DockerDotnetVersion $(DOTNET_VERSION)
2020
displayName: '[Docker Test Artifacts]'
21+
- job: Artifacts_Test_MsBuild
22+
displayName: Artifacts Test MsBuild (Windows)
23+
pool:
24+
vmImage: windows-latest
25+
steps:
26+
- template: common-steps.yml
27+
parameters:
28+
includeArtifacts: true
29+
- pwsh: ./build.ps1 -target Artifacts-MsBuildFull-Test
30+
displayName: '[MsBuild Test Artifacts]'

.github/workflows/build.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- master
7+
- 'fix/*'
8+
- 'feature/*'
9+
710
pull_request:
811
branches:
912
- master
@@ -125,9 +128,39 @@ jobs:
125128
shell: pwsh
126129
run: ./build.ps1 -target Artifacts-Test -DockerDistro ${{ matrix.distro }} -DockerDotnetVersion ${{ matrix.targetFramework }}
127130

131+
artifact_msbuild_test:
132+
name: Artifacts MsBuild Test
133+
needs: [build, test]
134+
runs-on: windows-latest
135+
steps:
136+
- uses: actions/checkout@v2
137+
- name: Fetch all history for all tags and branches
138+
run: |
139+
git fetch --prune --unshallow
140+
- name: Cache tools
141+
id: cache-tools
142+
uses: actions/cache@v1
143+
with:
144+
path: tools
145+
key: ${{ runner.os }}-tools-${{ hashFiles('build.cake') }}
146+
- name: Cache dotnet
147+
id: cache-dotnet
148+
uses: actions/cache@v1
149+
with:
150+
path: .dotnet
151+
key: ${{ runner.os }}-dotnet-${{ hashFiles('build.config') }}
152+
- uses: actions/download-artifact@v1
153+
name: Download artifacts folder
154+
with:
155+
name: storage
156+
path: ${{ github.workspace }}/artifacts
157+
- name: '[MsBuild Test Artifacts]'
158+
shell: pwsh
159+
run: ./build.ps1 -target Artifacts-MsBuildFull-Test
160+
128161
docker:
129162
name: Docker
130-
needs: [artifact_test]
163+
needs: [artifact_test, artifact_msbuild_test]
131164
runs-on: ubuntu-latest
132165
env:
133166
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}

0 commit comments

Comments
 (0)