Skip to content

Commit b38f3cb

Browse files
committed
(GH-2028) Added artifacts test for GH Actions
1 parent a333254 commit b38f3cb

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,40 @@ jobs:
7979
- name: '[Run Test]'
8080
shell: pwsh
8181
run: ./build.ps1 -target Test
82+
83+
artifact_test:
84+
name: Artifacts Test
85+
needs: [build, test]
86+
runs-on: ubuntu-latest
87+
strategy:
88+
matrix:
89+
os: [linux]
90+
targetFramework: [2.1, 3.1]
91+
distro: [centos-7, debian-9, fedora-30, ubuntu-16.04, ubuntu-18.04]
92+
fail-fast: false
93+
94+
steps:
95+
- uses: actions/checkout@v2
96+
- name: Fetch all history for all tags and branches
97+
run: |
98+
git fetch --prune --unshallow
99+
- name: Cache tools
100+
id: cache-tools
101+
uses: actions/cache@v1
102+
with:
103+
path: tools
104+
key: ${{ runner.os }}-tools-${{ hashFiles('build.cake') }}
105+
- name: Cache dotnet
106+
id: cache-dotnet
107+
uses: actions/cache@v1
108+
with:
109+
path: .dotnet
110+
key: ${{ runner.os }}-dotnet-${{ hashFiles('build.config') }}
111+
- uses: actions/download-artifact@v1
112+
with:
113+
name: storage
114+
path: ${{ github.workspace }}/artifacts
115+
- name: '[Docker Test Artifacts]'
116+
shell: pwsh
117+
run: ./build.ps1 -target Artifacts-Test -DockerDistro ${{ matrix.distro }} -DockerDotnetVersion ${{ matrix.targetFramework }}
118+

0 commit comments

Comments
 (0)