Skip to content

Commit 7542837

Browse files
committed
final yaml fix
1 parent 8ad8a5c commit 7542837

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

.github/workflows/test.yaml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -205,21 +205,16 @@ jobs:
205205
- jdkconf: JDK 17
206206
jdkver: "17"
207207
steps:
208-
- uses: actions/checkout@v4
209-
- name: Install Homebrew
208+
- name: Checkout
209+
uses: actions/checkout@v4
210+
211+
- name: Install Bash with brew
210212
run: |
211-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
212-
echo 'eval $(/usr/local/bin/brew shellenv)' >> $HOME/.zprofile
213-
eval $(/usr/local/bin/brew shellenv)
214-
215-
- name: Install Bash with Homebrew
216-
run: brew install bash
217-
218-
- name: Update Shell Configuration
219-
run: echo 'export PATH="/usr/local/bin:$PATH"' >> $HOME/.zprofile && exec -l $SHELL
220-
221-
- name: Verify Bash Version
222-
run: /opt/homebrew/Cellar/bash/5.2.37/bin/bash --version
213+
brew install bash
214+
echo "/usr/local/bin/bash" >> $GITHUB_PATH
215+
216+
- name: Check Bash version
217+
run: bash --version
223218

224219
- name: Set up JDK
225220
uses: actions/setup-java@v4
@@ -229,7 +224,7 @@ jobs:
229224
- name: Run
230225
run: |
231226
export OJDK_VERSION_NUMBER=${{ matrix.jdkver || env.jdkver_latest }} JREJDK="jre" WORKSPACE=/Users/runner/workspace JAVA_TO_TEST="${JAVA_HOME}/bin/java" TEST_JDK_HOME="${JAVA_HOME}"
232-
/opt/homebrew/Cellar/bash/5.2.37/bin/bash testHeadlessComponents.sh
227+
bash testHeadlessComponents.sh
233228
- name: Pack results
234229
if: ${{ always() }}
235230
run: |

0 commit comments

Comments
 (0)