aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorCrazyMax <crazy-max@users.noreply.github.com>2022-05-19 21:19:51 +0200
committerCrazyMax <crazy-max@users.noreply.github.com>2022-05-20 10:12:10 +0200
commit15ed58ffb597af157a8c2e2c90c7aab42f0fcadc (patch)
treee98c7411f9a109ec9f1a5f741d915c483406e66f /.github
parent0ca6e28807a7218d07deaf44c6e2f0a74fbb80c0 (diff)
ci(windows): upload coverage to codecov
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/windows.yml47
1 files changed, 42 insertions, 5 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 4e0283b8d8..48566106bc 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -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,13 +348,32 @@ 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: |
& "${{ env.BIN_OUT }}\docker" info