Skip to content

Commit 3bcfdd4

Browse files
committed
Update shell configuration for workflows
1 parent b8d64b2 commit 3bcfdd4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/actions/src/init/action.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,19 @@ inputs:
2121
default: false
2222
description: Should run the Playwright installation command
2323

24+
shell:
25+
required: true
26+
description: What shell to use
27+
28+
defaults:
29+
runs:
30+
shell: ${{ inputs.shell }}
31+
2432
runs:
2533
using: composite
2634
steps:
2735
- name: Enable Corepack
2836
run: corepack enable
29-
shell: bash
3037

3138
- name: Use Node.js 💻
3239
uses: actions/setup-node@v4
@@ -37,14 +44,11 @@ runs:
3744
- name: Install Dependencies (Focused)
3845
if: inputs.package-name != '' && inputs.install-deps == 'true'
3946
run: yarn workspaces focus ${{ inputs.package-name }}
40-
shell: bash
4147

4248
- name: Install Dependencies (General)
4349
if: inputs.package-name == '' && inputs.install-deps == 'true'
4450
run: yarn install --immutable
45-
shell: bash
4651

4752
- name: Install Playwright
4853
if: inputs.playwright == 'true' && inputs.install-deps == 'true'
4954
run: yarn workspaces foreach -A --include ${{ inputs.package-name }} run playwright install --with-deps
50-
shell: bash

.github/workflows/pull-request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
with:
7878
package-name: ${{ matrix.lib.name }}
7979
playwright: ${{ matrix.lib.changes && matrix.lib.needsPlaywright }}
80+
shell: ${{ matrix.os == 'Windows' && 'pwsh' || 'bash' }}
8081

8182
- name: Run Tests
8283
if: matrix.lib.changes

0 commit comments

Comments
 (0)