mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
This change adds conditional logic to skip build and test jobs when a pull request is labeled with 'ci/validate-only'. The `govulncheck` job in the CI workflow is intentionally excluded from this conditional logic, ensuring security vulnerability checks always run regardless of the label. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
43 lines
1013 B
YAML
43 lines
1013 B
YAML
name: windows-2025
|
|
|
|
# Default to 'contents: read', which grants actions to read commits.
|
|
#
|
|
# If any permission is set, any permission not included in the list is
|
|
# implicitly set to "none".
|
|
#
|
|
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
- '[0-9]+.[0-9]+'
|
|
- '[0-9]+.x'
|
|
pull_request:
|
|
|
|
jobs:
|
|
validate-dco:
|
|
uses: ./.github/workflows/.dco.yml
|
|
|
|
run:
|
|
if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci/validate-only') }}
|
|
uses: ./.github/workflows/.windows.yml
|
|
secrets: inherit
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
storage:
|
|
- graphdriver
|
|
- snapshotter
|
|
with:
|
|
os: windows-2025
|
|
storage: ${{ matrix.storage }}
|
|
send_coverage: false
|