Skip to content

Commit

Permalink
Fix MacOS suite
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Webb <[email protected]>
  • Loading branch information
damacus committed Dec 3, 2024
1 parent 13255f7 commit 58b2688
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 43 deletions.
39 changes: 1 addition & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,45 +56,8 @@ jobs:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}

integration-macos:
needs: "lint-unit"
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Chef
uses: actionshub/[email protected]
- name: Kitchen Converge
uses: actionshub/[email protected]
env:
CHEF_LICENSE: accept-no-persist
KITCHEN_LOCAL_YAML: kitchen.macos.yml
TERM: xterm-256color
with:
suite: temurin-11
os: macos
action: converge
- name: Source Profile for JAVA_HOME
run: |
source /etc/profile
echo "sourced profile for JAVA_HOME"
echo "New JAVA home after Chef run is: ${JAVA_HOME}"
# Magic line for github actions to persist the change
echo "JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
- name: Kitchen Verify
uses: actionshub/[email protected]
env:
CHEF_LICENSE: accept-no-persist
KITCHEN_LOCAL_YAML: kitchen.macos.yml
TERM: xterm-256color
with:
suite: temurin-11
os: macos
action: verify

final:
runs-on: ubuntu-latest
needs: [integration, integration-macos]
needs: [integration]
steps:
- run: echo ${{needs.integration.outputs}}
- run: echo ${{needs.integration-macos.outputs}}
8 changes: 4 additions & 4 deletions kitchen.macos.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ platforms:
gui: false

suites:
- name: adoptopenjdk-14
- name: default
run_list:
- recipe[homebrew]
- recipe[test::adoptopenjdk]
- recipe[test::openjdk]
attributes:
version: 14
variant: openj9
verifier:
inspec_tests: [test/integration/adoptopenjdk]
input_files: [test/integration/adoptopenjdk/inputs/adoptopenjdk-14-macos.yml]
inspec_tests: [test/integration/openjdk]
input_files: [test/integration/openjdk/inputs/openjdk-14-macos.yml]
2 changes: 1 addition & 1 deletion kitchen.macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ platforms:
gui: false

suites:
- name: openjdk-17
- name: default
run_list:
- recipe[test::openjdk]
attributes:
Expand Down

0 comments on commit 58b2688

Please sign in to comment.