Skip to content

Commit 4a3eb16

Browse files
committed
Fix (ci): Remove deprecated windows-2016 test job and bump all test jobs to run on ubuntu-latest
1 parent ece07fa commit 4a3eb16

File tree

1 file changed

+9
-49
lines changed

1 file changed

+9
-49
lines changed

.github/workflows/ci-master-pr.yml

+9-49
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,6 @@ on:
1111
- master
1212

1313
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-
3714
test-powershell-5-1-windows-2019:
3815
runs-on: windows-2019
3916
steps:
@@ -57,23 +34,6 @@ jobs:
5734
run: |
5835
powershell -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
5936
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-
7737
# macos-10-15:
7838
# runs-on: macos-10.15
7939
# steps:
@@ -92,7 +52,7 @@ jobs:
9252
# Docker #
9353
##########
9454
test-powershell-6-0:
95-
runs-on: ubuntu-16.04
55+
runs-on: ubuntu-latest
9656
container:
9757
# image: theohbrothers/docker-powershell:6.0.2-ubuntu-16.04-git
9858
image: mcr.microsoft.com/powershell:6.0.2-ubuntu-16.04
@@ -116,7 +76,7 @@ jobs:
11676
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
11777
11878
test-powershell-6-1:
119-
runs-on: ubuntu-16.04
79+
runs-on: ubuntu-latest
12080
container:
12181
# image: theohbrothers/docker-powershell:6.1.3-alpine-3.8-git
12282
# image: mcr.microsoft.com/powershell:6.1.3-alpine-3.8
@@ -141,7 +101,7 @@ jobs:
141101
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
142102
143103
test-powershell-6-2:
144-
runs-on: ubuntu-16.04
104+
runs-on: ubuntu-latest
145105
container:
146106
# image: theohbrothers/docker-powershell:6.2.4-alpine-3.8-git
147107
# image: mcr.microsoft.com/powershell:6.2.4-alpine-3.8
@@ -166,7 +126,7 @@ jobs:
166126
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
167127
168128
test-powershell-7-0:
169-
runs-on: ubuntu-16.04
129+
runs-on: ubuntu-latest
170130
container:
171131
# image: theohbrothers/docker-powershell:7.0.3-alpine-3.9-20200928
172132
# image: mcr.microsoft.com/powershell:7.0.3-alpine-3.9
@@ -191,7 +151,7 @@ jobs:
191151
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
192152
193153
test-powershell-7-1:
194-
runs-on: ubuntu-16.04
154+
runs-on: ubuntu-latest
195155
container:
196156
# image: theohbrothers/docker-powershell:7.1.3-alpine-3.11-20210316-git
197157
# image: mcr.microsoft.com/powershell:7.1.3-alpine-3.11-20210316
@@ -216,7 +176,7 @@ jobs:
216176
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
217177
218178
test-powershell-7-2:
219-
runs-on: ubuntu-16.04
179+
runs-on: ubuntu-latest
220180
container:
221181
# image: theohbrothers/docker-powershell:7.2.0-preview.4-alpine-3.11-20210316-git
222182
# image: mcr.microsoft.com/powershell:7.2.0-preview.4-alpine-3.11-20210316
@@ -241,7 +201,7 @@ jobs:
241201
pwsh -NoLogo -NonInteractive -NoProfile -Command './test/test.ps1'
242202
243203
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]
245205
if: github.ref == 'refs/heads/master'
246206
runs-on: ubuntu-latest
247207
steps:
@@ -251,7 +211,7 @@ jobs:
251211
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
252212

253213
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]
255215
if: startsWith(github.ref, 'refs/tags/')
256216
runs-on: ubuntu-latest
257217
steps:
@@ -281,7 +241,7 @@ jobs:
281241
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"
282242
283243
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]
285245
if: startsWith(github.ref, 'refs/tags/')
286246
runs-on: ubuntu-latest
287247
steps:

0 commit comments

Comments
 (0)