From 464154565757dbe4960dfb2c6058c797c0ce515f Mon Sep 17 00:00:00 2001 From: Steve Hannah Date: Fri, 19 Jul 2024 08:31:20 -0400 Subject: [PATCH] fixed notarization test --- .github/workflows/mac_codesign_tests.yml | 6 ++++++ tests/projects/TextEditorCodesign/test.sh | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mac_codesign_tests.yml b/.github/workflows/mac_codesign_tests.yml index d1b07e01..32b2f23e 100644 --- a/.github/workflows/mac_codesign_tests.yml +++ b/.github/workflows/mac_codesign_tests.yml @@ -18,6 +18,12 @@ jobs: distribution: 'adopt' cache: maven + - name: Install MacOS Certificates + uses: apple-actions/import-codesign-certs@v1 + with: + p12-file-base64: ${{ secrets.MACOS_CERTIFICATE }} + p12-password: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }} + - name: Test Mac env: JDEPLOY_MAC_NOTARIZATION_PASSWORD: ${{ secrets.JDEPLOY_MAC_TEST_NOTARIZATION_PASSWORD }} diff --git a/tests/projects/TextEditorCodesign/test.sh b/tests/projects/TextEditorCodesign/test.sh index 2d8a440e..458e3ff0 100644 --- a/tests/projects/TextEditorCodesign/test.sh +++ b/tests/projects/TextEditorCodesign/test.sh @@ -10,11 +10,6 @@ if [ "$(uname)" != "Darwin" ]; then exit 0 fi -if [ -z "$JDEPLOY_MAC_APP_BUNDLE_ID" ]; then - echo "Skipping test because JDEPLOY_MAC_APP_BUNDLE_ID environment variable is not set" - exit 0 -fi - if [ -z "$JDEPLOY_MAC_NOTARIZATION_PASSWORD" ]; then echo "Skipping test because JDEPLOY_MAC_NOTARIZATION_PASSWORD environment variable is not set" exit 0