Skip to content

Commit c2cf32d

Browse files
committed
ci: use matrix for Windows tests
Signed-off-by: Daijiro Fukuda <[email protected]>
1 parent e706aaf commit c2cf32d

File tree

1 file changed

+11
-60
lines changed

1 file changed

+11
-60
lines changed

.github/workflows/windows.yml

Lines changed: 11 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,18 @@ jobs:
5252
shell: pwsh
5353
run: |
5454
powershell -ExecutionPolicy Bypass -Command ".\fluent-package\msi\pkgsize-test.ps1"
55-
installation_test:
56-
name: Installation Test
55+
test:
56+
name: Test ${{ matrix.test }}
5757
needs: build
5858
runs-on: windows-2022
59+
strategy:
60+
fail-fast: false
61+
matrix:
62+
test:
63+
- "install-test.ps1"
64+
- "update-from-v4-test.ps1"
65+
- "update-from-v5-test.ps1"
66+
- "serverspec-test.ps1"
5967
steps:
6068
- uses: actions/checkout@v4
6169
- uses: actions/download-artifact@v4
@@ -71,61 +79,4 @@ jobs:
7179
--tty `
7280
--volume ${PWD}:C:\fluentd:ro `
7381
mcr.microsoft.com/dotnet/framework/runtime:3.5 `
74-
powershell -ExecutionPolicy Bypass -Command "C:\fluentd\fluent-package\msi\install-test.ps1"
75-
update_from_v4_test:
76-
name: Migration From v4 Test
77-
needs: build
78-
runs-on: windows-2022
79-
steps:
80-
- uses: actions/checkout@v4
81-
- uses: actions/download-artifact@v4
82-
with:
83-
name: packages-windows-x86_64
84-
path: fluent-package/msi/repositories
85-
- name: Migration From v4 Test
86-
shell: pwsh
87-
run: |
88-
docker run `
89-
--rm `
90-
--tty `
91-
--volume ${PWD}:C:\fluentd:ro `
92-
mcr.microsoft.com/dotnet/framework/runtime:3.5 `
93-
powershell -ExecutionPolicy Bypass -Command "C:\fluentd\fluent-package\msi\update-from-v4-test.ps1"
94-
update_from_v5_test:
95-
name: Update From v5 Test
96-
needs: build
97-
runs-on: windows-2022
98-
steps:
99-
- uses: actions/checkout@v4
100-
- uses: actions/download-artifact@v4
101-
with:
102-
name: packages-windows-x86_64
103-
path: fluent-package/msi/repositories
104-
- name: Update From v5 Test
105-
shell: pwsh
106-
run: |
107-
docker run `
108-
--rm `
109-
--tty `
110-
--volume ${PWD}:C:\fluentd:ro `
111-
mcr.microsoft.com/dotnet/framework/runtime:3.5 `
112-
powershell -ExecutionPolicy Bypass -Command "C:\fluentd\fluent-package\msi\update-from-v5-test.ps1"
113-
serverspec_test:
114-
name: Serverspec Test
115-
needs: build
116-
runs-on: windows-2022
117-
steps:
118-
- uses: actions/checkout@v4
119-
- uses: actions/download-artifact@v4
120-
with:
121-
name: packages-windows-x86_64
122-
path: fluent-package/msi/repositories
123-
- name: Serverspec Test
124-
shell: pwsh
125-
run: |
126-
docker run `
127-
--rm `
128-
--tty `
129-
--volume ${PWD}:C:\fluentd:ro `
130-
mcr.microsoft.com/dotnet/framework/runtime:3.5 `
131-
powershell -ExecutionPolicy Bypass -Command "C:\fluentd\fluent-package\msi\serverspec-test.ps1"
82+
powershell -ExecutionPolicy Bypass -Command "C:\fluentd\fluent-package\msi\${{ matrix.test }}"

0 commit comments

Comments
 (0)