From e69dd40bc7070597065f8126ea4fd91227d22273 Mon Sep 17 00:00:00 2001 From: Marko Justinek Date: Fri, 26 Apr 2024 15:26:02 +1000 Subject: [PATCH] ci: Pass github.workspace to reusable workflow --- .github/workflows/build_test.yml | 2 ++ .github/workflows/test_macos14_arm64.yml | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 0a6dcd8..257f7ba 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -33,6 +33,7 @@ jobs: binaries-path: ${{ env.BINARIES_PATH }} cache-key: ${{ env.CACHE_KEY }} cache-restore-key: ${{ env.CACHE_RESTORE_KEY }} + workspace: ${{ github.workspace }} steps: - run: echo "Just a hacky workaround for passing envs to jobs expecting them... ¯\_(ツ)_/¯" @@ -58,6 +59,7 @@ jobs: binaries-path: ${{ needs.sharedInputs.outputs.binaries-path }} cache-key: ${{ needs.sharedInputs.outputs.cache-key }} cache-restore-key: ${{ needs.sharedInputs.outputs.cache-restore-key }} + workspace: ${{ needs.sharedInputs.outputs.workspace }} testMacOS13: name: "🤖 Unit tests" diff --git a/.github/workflows/test_macos14_arm64.yml b/.github/workflows/test_macos14_arm64.yml index 63c71eb..5b580f0 100644 --- a/.github/workflows/test_macos14_arm64.yml +++ b/.github/workflows/test_macos14_arm64.yml @@ -15,6 +15,9 @@ on: cache-restore-key: required: true type: string + workspace: + required: true + type: string secrets: codecov_token: required: true @@ -70,8 +73,7 @@ jobs: uses: codecov/codecov-action@v4 with: token: ${{ secrets.codecov_token }} - file: ".build/artifacts/${{ env.SCHEME }}-TestResultBundle.xcresult" - directory: ".build/artifacts" + file: "${{ inputs.workspace }}/.build/artifacts/${{ env.SCHEME }}-TestResultBundle.xcresult" fail_ci_if_error: true flags: unittests name: PactSwiftMockServer