Skip to content

Commit f8169bb

Browse files
aaronpowellCopilot
andauthored
Skip Docker steps on Windows runners in CI (#1411)
The 'Verify Docker is running' and 'Dump docker info' steps are meaningless on Windows runners since Linux containers are not supported there. Gate both steps with runner.os == 'Linux' so they are skipped on Windows without affecting the Linux flow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 56dc564 commit f8169bb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/tests.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
docker-registry: ${{ secrets.CUSTOM_CONTAINER_REGISTRY }}
9898

9999
- name: Verify Docker is running
100+
if: runner.os == 'Linux'
100101
run: docker info
101102

102103
- name: Build test project
@@ -126,7 +127,7 @@ jobs:
126127
CUSTOM_CONTAINER_REGISTRY: ${{ secrets.CUSTOM_CONTAINER_REGISTRY }}
127128

128129
- name: Dump docker info
129-
if: always()
130+
if: always() && runner.os == 'Linux'
130131
run: |
131132
docker container ls --all
132133
docker container ls --all --format json

0 commit comments

Comments
 (0)