File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66jobs :
77 test :
88 name : Release module
9- runs-on : windows -latest
9+ runs-on : ubuntu -latest
1010 steps :
11+ - name : Updating PowerShell
12+ run : |
13+ ###################################
14+ # Prerequisites
15+
16+ # Update the list of packages
17+ sudo apt-get update
18+
19+ # Install pre-requisite packages.
20+ sudo apt-get install -y wget apt-transport-https software-properties-common
21+
22+ # Get the version of Ubuntu
23+ source /etc/os-release
24+
25+ # Download the Microsoft repository keys
26+ wget -q https://packages.microsoft.com/config/ubuntu/$VERSION_ID/packages-microsoft-prod.deb
27+
28+ # Register the Microsoft repository keys
29+ sudo dpkg -i packages-microsoft-prod.deb
30+
31+ # Delete the the Microsoft repository keys file
32+ rm packages-microsoft-prod.deb
33+
34+ # Update the list of packages after we added packages.microsoft.com
35+ sudo apt-get update
36+
37+ ###################################
38+ # Install PowerShell
39+ sudo apt-get install -y powershell
40+
41+ # Start PowerShell
42+ pwsh -v
1143 - name : Checkout code
1244 uses : actions/checkout@v3
1345 with :
You can’t perform that action at this time.
0 commit comments