11
11
- master
12
12
13
13
jobs :
14
- test-powershell-5-1-windows-2016 :
15
- runs-on : windows-2016
16
- steps :
17
- - uses : actions/checkout@v2
18
- - name : Display system info (windows)
19
- run : |
20
- Set-StrictMode -Version Latest; $ErrorActionPreference = 'Stop'
21
- hostname
22
- whoami
23
- systeminfo
24
- Get-PSDrive
25
- Get-Location
26
- # pwsh version
27
- $PSVersionTable
28
- # Windows Powershell version?
29
- powershell -Command '$PSVersionTable'
30
- - name : Powershell version
31
- run : |
32
- powershell -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
33
- - name : Test
34
- run : |
35
- powershell -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
36
-
37
14
test-powershell-5-1-windows-2019 :
38
15
runs-on : windows-2019
39
16
steps :
57
34
run : |
58
35
powershell -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
59
36
60
- # ubuntu-16-04:
61
- # runs-on: ubuntu-16.04
62
- # steps:
63
- # - uses: actions/checkout@v2
64
- # - name: Display system info (linux)
65
- # run: |
66
- # set -e
67
- # hostname
68
- # whoami
69
- # cat /etc/*release
70
- # lscpu
71
- # free
72
- # df -h
73
- # pwd
74
- # docker info
75
- # docker version
76
-
77
37
# macos-10-15:
78
38
# runs-on: macos-10.15
79
39
# steps:
92
52
# Docker #
93
53
# #########
94
54
test-powershell-6-0 :
95
- runs-on : ubuntu-16.04
55
+ runs-on : ubuntu-latest
96
56
container :
97
57
# image: theohbrothers/docker-powershell:6.0.2-ubuntu-16.04-git
98
58
image : mcr.microsoft.com/powershell:6.0.2-ubuntu-16.04
116
76
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
117
77
118
78
test-powershell-6-1 :
119
- runs-on : ubuntu-16.04
79
+ runs-on : ubuntu-latest
120
80
container :
121
81
# image: theohbrothers/docker-powershell:6.1.3-alpine-3.8-git
122
82
# image: mcr.microsoft.com/powershell:6.1.3-alpine-3.8
@@ -141,7 +101,7 @@ jobs:
141
101
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
142
102
143
103
test-powershell-6-2 :
144
- runs-on : ubuntu-16.04
104
+ runs-on : ubuntu-latest
145
105
container :
146
106
# image: theohbrothers/docker-powershell:6.2.4-alpine-3.8-git
147
107
# image: mcr.microsoft.com/powershell:6.2.4-alpine-3.8
@@ -166,7 +126,7 @@ jobs:
166
126
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
167
127
168
128
test-powershell-7-0 :
169
- runs-on : ubuntu-16.04
129
+ runs-on : ubuntu-latest
170
130
container :
171
131
# image: theohbrothers/docker-powershell:7.0.3-alpine-3.9-20200928
172
132
# image: mcr.microsoft.com/powershell:7.0.3-alpine-3.9
@@ -191,7 +151,7 @@ jobs:
191
151
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
192
152
193
153
test-powershell-7-1 :
194
- runs-on : ubuntu-16.04
154
+ runs-on : ubuntu-latest
195
155
container :
196
156
# image: theohbrothers/docker-powershell:7.1.3-alpine-3.11-20210316-git
197
157
# image: mcr.microsoft.com/powershell:7.1.3-alpine-3.11-20210316
@@ -216,7 +176,7 @@ jobs:
216
176
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
217
177
218
178
test-powershell-7-2 :
219
- runs-on : ubuntu-16.04
179
+ runs-on : ubuntu-latest
220
180
container :
221
181
# image: theohbrothers/docker-powershell:7.2.0-preview.4-alpine-3.11-20210316-git
222
182
# image: mcr.microsoft.com/powershell:7.2.0-preview.4-alpine-3.11-20210316
@@ -241,7 +201,7 @@ jobs:
241
201
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
242
202
243
203
update-draft-release :
244
- needs : [test-powershell-5-1-windows-2016, test-powershell-5-1-windows- 2019, test-powershell-6-0, test-powershell-6-1, test-powershell-6-1, test-powershell-7-0, test-powershell-7-1, test-powershell-7-2]
204
+ needs : [test-powershell-5-1-windows-2019, test-powershell-6-0, test-powershell-6-1, test-powershell-6-1, test-powershell-7-0, test-powershell-7-1, test-powershell-7-2]
245
205
if : github.ref == 'refs/heads/master'
246
206
runs-on : ubuntu-latest
247
207
steps :
@@ -251,7 +211,7 @@ jobs:
251
211
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
252
212
253
213
publish-to-psgallery :
254
- needs : [test-powershell-5-1-windows-2016, test-powershell-5-1-windows- 2019, test-powershell-6-0, test-powershell-6-1, test-powershell-6-1, test-powershell-7-0, test-powershell-7-1, test-powershell-7-2]
214
+ needs : [test-powershell-5-1-windows-2019, test-powershell-6-0, test-powershell-6-1, test-powershell-6-1, test-powershell-7-0, test-powershell-7-1, test-powershell-7-2]
255
215
if : startsWith(github.ref, 'refs/tags/')
256
216
runs-on : ubuntu-latest
257
217
steps :
@@ -281,7 +241,7 @@ jobs:
281
241
NUGET_API_KEY=${NUGET_API_KEY} MODULE_VERSION=${MODULE_VERSION} pwsh -Command "build/PSModulePublisher/src/Invoke-Publish.ps1 -ModuleManifestPath src/$MODULE_NAME/$MODULE_NAME.psd1 -Repository PSGallery"
282
242
283
243
publish-draft-release :
284
- needs : [test-powershell-5-1-windows-2016, test-powershell-5-1-windows- 2019, test-powershell-6-0, test-powershell-6-1, test-powershell-6-1, test-powershell-7-0, test-powershell-7-1, test-powershell-7-2, publish-to-psgallery]
244
+ needs : [test-powershell-5-1-windows-2019, test-powershell-6-0, test-powershell-6-1, test-powershell-6-1, test-powershell-7-0, test-powershell-7-1, test-powershell-7-2, publish-to-psgallery]
285
245
if : startsWith(github.ref, 'refs/tags/')
286
246
runs-on : ubuntu-latest
287
247
steps :
0 commit comments