diff --git a/.github/workflows/mobile-sdk-demo-e2e.yml b/.github/workflows/mobile-sdk-demo-e2e.yml index 50f617b21..d1ecbc6ec 100644 --- a/.github/workflows/mobile-sdk-demo-e2e.yml +++ b/.github/workflows/mobile-sdk-demo-e2e.yml @@ -59,6 +59,9 @@ jobs: node-version: ${{ env.NODE_VERSION }} - run: corepack enable - run: corepack prepare yarn@4.6.0 --activate + - name: Compute .yarnrc.yml hash + id: yarnrc-hash + uses: ./.github/actions/yarnrc-hash - name: Cache Yarn dependencies uses: ./.github/actions/cache-yarn with: @@ -66,7 +69,7 @@ jobs: .yarn/cache .yarn/install-state.gz .yarn/unplugged - cache-version: ${{ env.GH_CACHE_VERSION }}-node-${{ env.NODE_VERSION_SANITIZED }}-${{ hashFiles('.yarnrc.yml') }} + cache-version: ${{ env.GH_CACHE_VERSION }}-node-${{ env.NODE_VERSION_SANITIZED }}-${{ steps.yarnrc-hash.outputs.hash }} - name: Toggle Yarn hardened mode for trusted PRs if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false }} run: echo "YARN_ENABLE_HARDENED_MODE=0" >> $GITHUB_ENV @@ -220,6 +223,9 @@ jobs: node-version: ${{ env.NODE_VERSION }} - run: corepack enable - run: corepack prepare yarn@4.6.0 --activate + - name: Compute .yarnrc.yml hash + id: yarnrc-hash + uses: ./.github/actions/yarnrc-hash - name: Cache Yarn dependencies uses: ./.github/actions/cache-yarn with: @@ -227,7 +233,7 @@ jobs: .yarn/cache .yarn/install-state.gz .yarn/unplugged - cache-version: ${{ env.GH_CACHE_VERSION }}-node-${{ env.NODE_VERSION_SANITIZED }}-${{ hashFiles('.yarnrc.yml') }} + cache-version: ${{ env.GH_CACHE_VERSION }}-node-${{ env.NODE_VERSION_SANITIZED }}-${{ steps.yarnrc-hash.outputs.hash }} - name: Toggle Yarn hardened mode for trusted PRs if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false }} run: echo "YARN_ENABLE_HARDENED_MODE=0" >> $GITHUB_ENV diff --git a/.github/workflows/qrcode-sdk-ci.yml b/.github/workflows/qrcode-sdk-ci.yml index 5849e7d49..8b4852cc7 100644 --- a/.github/workflows/qrcode-sdk-ci.yml +++ b/.github/workflows/qrcode-sdk-ci.yml @@ -76,6 +76,7 @@ jobs: with: path: | common/dist + sdk/sdk-common/dist sdk/qrcode/dist key: qrcode-sdk-build-${{ env.GH_SDK_CACHE_VERSION }}-${{ github.sha }} @@ -128,6 +129,7 @@ jobs: with: path: | common/dist + sdk/sdk-common/dist sdk/qrcode/dist key: qrcode-sdk-build-${{ env.GH_SDK_CACHE_VERSION }}-${{ github.sha }} fail-on-cache-miss: true @@ -195,6 +197,7 @@ jobs: with: path: | common/dist + sdk/sdk-common/dist sdk/qrcode/dist key: qrcode-sdk-build-${{ env.GH_SDK_CACHE_VERSION }}-${{ github.sha }} fail-on-cache-miss: true @@ -203,6 +206,7 @@ jobs: run: | echo "Verifying build artifacts..." ls -la common/dist/ + ls -la sdk/sdk-common/dist/ ls -la sdk/qrcode/dist/ echo "✅ Build artifacts verified" @@ -255,13 +259,11 @@ jobs: with: path: | common/dist + sdk/sdk-common/dist sdk/qrcode/dist key: qrcode-sdk-build-${{ env.GH_SDK_CACHE_VERSION }}-${{ github.sha }} fail-on-cache-miss: true - - name: Build SDK common dependency - run: yarn workspace @selfxyz/sdk-common build - - name: Run tests run: yarn workspace @selfxyz/qrcode test