|
@@ -178,10 +178,10 @@ jobs:
|
|
flags: unit
|
|
flags: unit
|
|
-
|
|
-
|
|
name: Upload reports
|
|
name: Upload reports
|
|
- if: matrix.os == 'windows-2022'
|
|
|
|
|
|
+ if: always()
|
|
uses: actions/upload-artifact@v3
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
with:
|
|
- name: unit-reports
|
|
|
|
|
|
+ name: ${{ matrix.os }}-unit-reports
|
|
path: ${{ env.GOPATH }}\src\github.com\docker\docker\bundles\*
|
|
path: ${{ env.GOPATH }}\src\github.com\docker\docker\bundles\*
|
|
|
|
|
|
integration-test:
|
|
integration-test:
|
|
@@ -223,6 +223,7 @@ jobs:
|
|
-
|
|
-
|
|
name: Init
|
|
name: Init
|
|
run: |
|
|
run: |
|
|
|
|
+ New-Item -ItemType "directory" -Path "bundles"
|
|
If ("${{ matrix.os }}" -eq "windows-2019") {
|
|
If ("${{ matrix.os }}" -eq "windows-2019") {
|
|
echo "WINDOWS_BASE_IMAGE_TAG=${{ env.WINDOWS_BASE_TAG_2019 }}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
|
|
echo "WINDOWS_BASE_IMAGE_TAG=${{ env.WINDOWS_BASE_TAG_2019 }}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
|
|
} ElseIf ("${{ matrix.os }}" -eq "windows-2022") {
|
|
} ElseIf ("${{ matrix.os }}" -eq "windows-2022") {
|
|
@@ -348,11 +349,16 @@ jobs:
|
|
-
|
|
-
|
|
name: Test CLI
|
|
name: Test CLI
|
|
run: |
|
|
run: |
|
|
- & gotestsum --format=standard-verbose --packages="./integration-cli/..." -- `
|
|
|
|
- "-coverprofile" "./bundles/coverage-report-int-cli-tests.txt" `
|
|
|
|
- "-covermode" "atomic" `
|
|
|
|
- "-tags" "autogen" `
|
|
|
|
- "-test.timeout" "200m"
|
|
|
|
|
|
+ & gotestsum `
|
|
|
|
+ --format=standard-verbose `
|
|
|
|
+ --jsonfile="./bundles/go-test-report-int-cli-tests.json" `
|
|
|
|
+ --junitfile="./bundles/junit-report-int-cli-tests.xml" `
|
|
|
|
+ --packages="./integration-cli/..." `
|
|
|
|
+ -- `
|
|
|
|
+ "-coverprofile" "./bundles/coverage-report-int-cli-tests.txt" `
|
|
|
|
+ "-covermode" "atomic" `
|
|
|
|
+ "-tags" "autogen" `
|
|
|
|
+ "-test.timeout" "200m"
|
|
env:
|
|
env:
|
|
DOCKER_HOST: npipe:////./pipe/docker_engine
|
|
DOCKER_HOST: npipe:////./pipe/docker_engine
|
|
GO111MODULE: "off"
|
|
GO111MODULE: "off"
|
|
@@ -366,13 +372,6 @@ jobs:
|
|
directory: bundles
|
|
directory: bundles
|
|
env_vars: RUNNER_OS
|
|
env_vars: RUNNER_OS
|
|
flags: integration,${{ matrix.runtime }}
|
|
flags: integration,${{ matrix.runtime }}
|
|
- -
|
|
|
|
- name: Upload reports
|
|
|
|
- if: matrix.os == 'windows-2022'
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
- with:
|
|
|
|
- name: integration-reports-${{ matrix.runtime }}
|
|
|
|
- path: ${{ env.GOPATH }}\src\github.com\docker\docker\bundles\*
|
|
|
|
-
|
|
-
|
|
name: Docker info
|
|
name: Docker info
|
|
run: |
|
|
run: |
|
|
@@ -390,6 +389,7 @@ jobs:
|
|
name: Containerd logs
|
|
name: Containerd logs
|
|
if: always() && matrix.runtime == 'containerd'
|
|
if: always() && matrix.runtime == 'containerd'
|
|
run: |
|
|
run: |
|
|
|
|
+ Copy-Item "$env:TEMP\ctn.log" -Destination ".\bundles\containerd.log"
|
|
Get-Content "$env:TEMP\ctn.log" | Out-Host
|
|
Get-Content "$env:TEMP\ctn.log" | Out-Host
|
|
-
|
|
-
|
|
name: Stop daemon
|
|
name: Stop daemon
|
|
@@ -408,4 +408,11 @@ jobs:
|
|
-FilterHashtable @{ProviderName= "docker"; LogName = "application"} |
|
|
-FilterHashtable @{ProviderName= "docker"; LogName = "application"} |
|
|
Select-Object -Property TimeCreated, @{N='Detailed Message'; E={$_.Message}} |
|
|
Select-Object -Property TimeCreated, @{N='Detailed Message'; E={$_.Message}} |
|
|
Sort-Object @{Expression="TimeCreated";Descending=$false} |
|
|
Sort-Object @{Expression="TimeCreated";Descending=$false} |
|
|
- Select-Object -ExpandProperty 'Detailed Message'
|
|
|
|
|
|
+ Select-Object -ExpandProperty 'Detailed Message' | Tee-Object -file ".\bundles\daemon.log"
|
|
|
|
+ -
|
|
|
|
+ name: Upload reports
|
|
|
|
+ if: always()
|
|
|
|
+ uses: actions/upload-artifact@v3
|
|
|
|
+ with:
|
|
|
|
+ name: ${{ matrix.os }}-integration-reports-${{ matrix.runtime }}
|
|
|
|
+ path: ${{ env.GOPATH }}\src\github.com\docker\docker\bundles\*
|