|
@@ -131,6 +131,7 @@ jobs:
|
|
|
run: |
|
|
|
New-Item -ItemType "directory" -Path "${{ github.workspace }}\go-build"
|
|
|
New-Item -ItemType "directory" -Path "${{ github.workspace }}\go\pkg\mod"
|
|
|
+ New-Item -ItemType "directory" -Path "bundles"
|
|
|
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
|
|
|
} ElseIf ("${{ matrix.os }}" -eq "windows-2022") {
|
|
@@ -162,9 +163,26 @@ jobs:
|
|
|
name: Test
|
|
|
run: |
|
|
|
& docker run --name ${{ env.TEST_CTN_NAME }} -e "DOCKER_GITCOMMIT=${{ github.sha }}" `
|
|
|
- -v "${{ github.workspace }}\go-build:C:\Users\ContainerAdministrator\AppData\Local\go-build" `
|
|
|
- -v "${{ github.workspace }}\go\pkg\mod:C:\gopath\pkg\mod" `
|
|
|
- ${{ env.TEST_IMAGE_NAME }} hack\make.ps1 -TestUnit
|
|
|
+ -v "${{ github.workspace }}\go-build:C:\Users\ContainerAdministrator\AppData\Local\go-build" `
|
|
|
+ -v "${{ github.workspace }}\go\pkg\mod:C:\gopath\pkg\mod" `
|
|
|
+ -v "${{ env.GOPATH }}\src\github.com\docker\docker\bundles:C:\gopath\src\github.com\docker\docker\bundles" `
|
|
|
+ ${{ env.TEST_IMAGE_NAME }} hack\make.ps1 -TestUnit
|
|
|
+ -
|
|
|
+ name: Send to Codecov
|
|
|
+ if: matrix.os == 'windows-2022'
|
|
|
+ uses: codecov/codecov-action@v3
|
|
|
+ with:
|
|
|
+ working-directory: ${{ env.GOPATH }}\src\github.com\docker\docker
|
|
|
+ directory: bundles
|
|
|
+ env_vars: RUNNER_OS
|
|
|
+ flags: unit
|
|
|
+ -
|
|
|
+ name: Upload reports
|
|
|
+ if: matrix.os == 'windows-2022'
|
|
|
+ uses: actions/upload-artifact@v3
|
|
|
+ with:
|
|
|
+ name: unit-reports
|
|
|
+ path: ${{ env.GOPATH }}\src\github.com\docker\docker\bundles\*
|
|
|
|
|
|
integration-test:
|
|
|
runs-on: ${{ matrix.os }}
|
|
@@ -330,12 +348,31 @@ jobs:
|
|
|
-
|
|
|
name: Test CLI
|
|
|
run: |
|
|
|
- gotestsum --format=standard-verbose -- "-tags" "autogen" "-test.timeout" "200m"
|
|
|
- working-directory: ${{ env.GOPATH }}/src/github.com/docker/docker/integration-cli
|
|
|
+ & gotestsum --format=standard-verbose --packages="./integration-cli/..." -- `
|
|
|
+ "-coverprofile" "./bundles/coverage-report-int-cli-tests.txt" `
|
|
|
+ "-covermode" "atomic" `
|
|
|
+ "-tags" "autogen" `
|
|
|
+ "-test.timeout" "200m"
|
|
|
env:
|
|
|
DOCKER_HOST: npipe:////./pipe/docker_engine
|
|
|
GO111MODULE: "off"
|
|
|
TEST_CLIENT_BINARY: ${{ env.BIN_OUT }}\docker
|
|
|
+ -
|
|
|
+ name: Send to Codecov
|
|
|
+ if: matrix.os == 'windows-2022'
|
|
|
+ uses: codecov/codecov-action@v3
|
|
|
+ with:
|
|
|
+ working-directory: ${{ env.GOPATH }}\src\github.com\docker\docker
|
|
|
+ directory: bundles
|
|
|
+ env_vars: RUNNER_OS
|
|
|
+ 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
|
|
|
run: |
|