Skip to content

Commit 9f5bf67

Browse files
JohnMcLearclaude
andcommitted
ci(installer): split installer step per shell (shell: can't be an expression)
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139nGyeFNACmifj6pRLSVRs
1 parent fe34c2c commit 9f5bf67

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/installer-test.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,20 @@ jobs:
131131
- name: Pre-install pnpm
132132
run: npm install -g pnpm
133133

134-
- name: Run bin/installer.ps1 against this commit
135-
shell: ${{ matrix.shell }}
134+
# `shell:` can't take an expression, so one step per shell.
135+
- name: Run bin/installer.ps1 against this commit (PowerShell 7)
136+
if: matrix.shell == 'pwsh'
137+
shell: pwsh
138+
env:
139+
ETHERPAD_DIR: ${{ runner.temp }}\etherpad-installer-test
140+
ETHERPAD_REPO: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.clone_url || format('{0}/{1}.git', github.server_url, github.repository) }}
141+
ETHERPAD_BRANCH: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref_name }}
142+
NO_COLOR: "1"
143+
run: ./bin/installer.ps1
144+
145+
- name: Run bin/installer.ps1 against this commit (Windows PowerShell 5.1)
146+
if: matrix.shell == 'powershell'
147+
shell: powershell
136148
env:
137149
ETHERPAD_DIR: ${{ runner.temp }}\etherpad-installer-test
138150
ETHERPAD_REPO: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.clone_url || format('{0}/{1}.git', github.server_url, github.repository) }}

0 commit comments

Comments
 (0)