From e22f032baadada22c37523153921c17cd9fc4311 Mon Sep 17 00:00:00 2001 From: quolu <226230081+quolu@users.noreply.github.com> Date: Wed, 30 Sep 2026 00:18:10 +0000 Subject: [PATCH] Limit product full CI to workstation Linux --- .github/workflows/ci.yml | 2 +- .github/workflows/product-full-ci.yml | 2 +- test/ci-contract.test.mjs | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c484447..4eb0da2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ on: description: 実行する工場環境 type: choice default: all - options: [all, macos-native, linux-server, linux-workstation, windows-native] + options: [all, macos-native, linux-workstation, windows-native] permissions: contents: read diff --git a/.github/workflows/product-full-ci.yml b/.github/workflows/product-full-ci.yml index ee45700..0133d7a 100644 --- a/.github/workflows/product-full-ci.yml +++ b/.github/workflows/product-full-ci.yml @@ -95,7 +95,7 @@ jobs: strategy: fail-fast: false matrix: - environment: ${{ fromJSON(inputs.environment != 'all' && format('["{0}"]', inputs.environment) || '["macos-native","linux-server","linux-workstation","windows-native"]') }} + environment: ${{ fromJSON(inputs.environment != 'all' && format('["{0}"]', inputs.environment) || '["macos-native","linux-workstation","windows-native"]') }} timeout-minutes: 30 runs-on: [self-hosted, factory, "${{ matrix.environment }}"] steps: diff --git a/test/ci-contract.test.mjs b/test/ci-contract.test.mjs index 95d6d34..98b9b5d 100644 --- a/test/ci-contract.test.mjs +++ b/test/ci-contract.test.mjs @@ -37,8 +37,10 @@ test('Markdown-only変更は製品所有の文書gateを必ず実行する', asy assert.match(reusable, /run:\s+\$\{\{ inputs\.documentation-command \}\}/u); assert.match( reusable, - /"macos-native","linux-server","linux-workstation","windows-native"/u, + /"macos-native","linux-workstation","windows-native"/u, ); + assert.match(caller, /options:\s+\[all, macos-native, linux-workstation, windows-native\]/u); + assert.doesNotMatch(`${caller}\n${reusable}`, /linux-server/u); assert.doesNotMatch(`${caller}\n${reusable}`, /linux-native|wsl2/u); const packedVerifier = await readFile( path.join(repoRoot, 'scripts/verify-packed-markdown.mjs'),