This commit is contained in:
Ahmed Messaoud 2024-03-22 14:04:22 -07:00 коммит произвёл GitHub
Родитель 9b06a1e48a
Коммит 61810c579a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
13 изменённых файлов: 151 добавлений и 17 удалений

10
.github/workflows/ci-report.yml поставляемый
Просмотреть файл

@ -21,13 +21,3 @@ jobs:
name: CI report
path: '*.xml'
reporter: java-junit
nrp-e2e-report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: universal-nrp-test
name: Universal NRP Test Report
path: '*.xml'
reporter: java-junit

Просмотреть файл

@ -20,4 +20,4 @@ jobs:
artifact: universal-nrp-test
name: Universal NRP Test Report
path: '*.xml'
reporter: dotnet-trx
reporter: java-junit

4
.github/workflows/universalnrp-test-run.yml поставляемый
Просмотреть файл

@ -50,12 +50,12 @@ jobs:
- name: Install OSConfig
if: ${{ inputs.install-osconfig }}
working-directory: ${{ steps.download.outputs.download-path }}/build
working-directory: ${{ steps.download.outputs.download-path }}
run: |
if [ "${{ inputs.package-type }}" = "DEB" ]; then
sudo dpkg -i $(ls *.deb)
else
sudo yum install -y $(ls *.rpm)
sudo rpm -fi $(ls *.rpm)
fi
- name: Run Guest Configuration Test

17
.github/workflows/universalnrp-test.yml поставляемый
Просмотреть файл

@ -1,6 +1,9 @@
name: Universal NRP Test
on: [workflow_dispatch]
on:
workflow_dispatch:
schedule:
- cron: '0 20 * * *' # Every day at 12pm PST (UTC-8)
jobs:
test:
@ -11,11 +14,23 @@ jobs:
matrix:
target:
[
{ os: centos, version: 8, package-type: RPM, tag: ''},
{ os: debian, version: 10, package-type: DEB, tag: ''},
{ os: debian, version: 11, package-type: DEB, tag: ''},
{ os: mariner, version: 2, package-type: RPM, tag: ''},
{ os: oraclelinux, version: 8, package-type: RPM, tag: ''},
{ os: rhel, version: 8, package-type: RPM, tag: ''},
{ os: rhel, version: 9, package-type: RPM, tag: ''},
{ os: rockylinux, version: 9, package-type: RPM, tag: ''},
{ os: sles, version: 15, package-type: RPM, tag: ''},
{ os: ubuntu, version: 20.04, package-type: DEB, tag: ''},
{ os: ubuntu, version: 22.04, package-type: DEB, tag: ''},
]
arch: [amd64]
install-osconfig: [true, false]
with:
target: ${{ matrix.target.os }}-${{ matrix.target.version }}
arch: ${{ matrix.arch }}
package-type: ${{ matrix.target.package-type }}
install-osconfig: ${{ matrix.install-osconfig }}
tag: ${{ matrix.target.tag }}

Просмотреть файл

@ -33,7 +33,7 @@
{
"name": "linux-install-packages",
"parameters": {
"packages": "dotnet-sdk-6.0 jq"
"packages": "dotnet-sdk-6.0 jq powershell omi"
}
},
{

Просмотреть файл

@ -33,7 +33,7 @@
{
"name": "linux-install-packages",
"parameters": {
"packages": "dotnet-sdk-6.0 jq"
"packages": "dotnet-sdk-6.0 jq powershell omi"
}
},
{

Просмотреть файл

@ -0,0 +1,37 @@
{
"artifacts": [
{
"name": "linux-install-packages",
"parameters": {
"packages": "software-properties-common gnupg2"
}
},
{
"name": "linux-add-key",
"parameters": {
"key": "https://packages.microsoft.com/keys/microsoft.asc"
}
},
{
"name": "linux-add-repository",
"parameters": {
"repository": "https://packages.microsoft.com/debian/12/prod"
}
},
{
"name": "linux-install-packages",
"parameters": {
"packages": "dotnet-sdk-6.0 jq omi"
}
},
{
"name": "linux-azcli"
},
{
"name": "linux-bash-command",
"parameters": {
"command": "wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/powershell_7.4.1-1.deb_amd64.deb -O powershell.deb && sudo dpkg -i powershell.deb && sudo apt-get install -f"
}
}
]
}

Просмотреть файл

@ -0,0 +1,16 @@
{
"artifacts": [
{
"name": "linux-bash-command",
"parameters": {
"command": "sudo tdnf -y install dotnet-sdk-8.0 powershell"
}
},
{
"name": "linux-bash-command",
"parameters": {
"command": "wget https://github.com/microsoft/omi/releases/download/v1.8.1-0/omi-1.8.1-0.ssl_110.ulinux.s.x64.rpm -O omi.rpm && sudo tdnf install -y omi.rpm"
}
}
]
}

Просмотреть файл

@ -0,0 +1,22 @@
{
"artifacts": [
{
"name": "linux-bash-command",
"parameters": {
"command": "sudo yum install -y glibc* libicu wget which"
}
},
{
"name": "linux-bash-command",
"parameters": {
"command": "wget https://github.com/microsoft/omi/releases/download/v1.8.1-0/omi-1.8.1-0.ssl_110.ulinux.s.x64.rpm -O omi.rpm && rpm -fi omi.rpm"
}
},
{
"name": "linux-bash-command",
"parameters": {
"command": "wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/powershell-7.4.1-1.rh.x86_64.rpm -O powershell.rpm && rpm -fi powershell.rpm --nodeps"
}
}
]
}

Просмотреть файл

@ -0,0 +1,10 @@
{
"artifacts": [
{
"name": "linux-bash-command",
"parameters": {
"command": "sudo yum install -y yum-utils && yum-config-manager --add-repo https://packages.microsoft.com/yumrepos/microsoft-rhel8.0-prod/ && sudo yum install -y powershell omi"
}
}
]
}

Просмотреть файл

@ -0,0 +1,10 @@
{
"artifacts": [
{
"name": "linux-bash-command",
"parameters": {
"command": "sudo yum install -y yum-utils && yum-config-manager --add-repo https://packages.microsoft.com/yumrepos/microsoft-rhel9.0-prod/ && sudo yum install -y powershell omi"
}
}
]
}

Просмотреть файл

@ -0,0 +1,22 @@
{
"artifacts": [
{
"name": "linux-bash-command",
"parameters": {
"command": "sudo yum install -y glibc* libicu wget which"
}
},
{
"name": "linux-bash-command",
"parameters": {
"command": "wget https://github.com/microsoft/omi/releases/download/v1.8.1-0/omi-1.8.1-0.ssl_300.ulinux.s.x64.rpm -O omi.rpm && rpm -fi omi.rpm"
}
},
{
"name": "linux-bash-command",
"parameters": {
"command": "wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/powershell-7.4.1-1.rh.x86_64.rpm -O powershell.rpm && rpm -fi powershell.rpm --nodeps"
}
}
]
}

Просмотреть файл

@ -3,7 +3,19 @@
{
"name": "linux-bash-command",
"parameters": {
"command": "sudo zypper install -y glibc*"
"command": "sudo zypper ar -f https://packages.microsoft.com/yumrepos/microsoft-sles15-prod/config.repo"
}
},
{
"name": "linux-bash-command",
"parameters": {
"command": "wget https://github.com/microsoft/omi/releases/download/v1.8.1-0/omi-1.8.1-0.ssl_110.ulinux.s.x64.rpm -O omi.rpm && rpm -fi omi.rpm"
}
},
{
"name": "linux-bash-command",
"parameters": {
"command": "wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/powershell-7.4.1-1.rh.x86_64.rpm -O powershell.rpm && rpm -fi powershell.rpm --nodeps"
}
}
]