diff --git a/.github/workflows/test-libs-reusable.yml b/.github/workflows/test-libs-reusable.yml index d22609399131..9024a24f7dc6 100644 --- a/.github/workflows/test-libs-reusable.yml +++ b/.github/workflows/test-libs-reusable.yml @@ -34,7 +34,7 @@ jobs: ref: ${{ inputs.ref || github.sha }} - name: Setup the caches uses: LedgerHQ/ledger-live/tools/actions/composites/setup-caches@develop - id: cache + id: setup-caches with: skip-turbo-cache: "false" accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }} @@ -79,26 +79,26 @@ jobs: with: ref: ${{ inputs.ref || github.sha }} fetch-depth: 2 - - name: Setup the toolchain - uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop - id: toolchain + - name: Setup the caches + uses: LedgerHQ/ledger-live/tools/actions/composites/setup-caches@develop + id: setup-caches with: + skip-turbo-cache: "false" accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }} roleName: ${{ secrets.AWS_CACHE_ROLE_NAME }} region: ${{ secrets.AWS_CACHE_REGION }} turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }} - skip-turbo-cache: "false" - name: Install dependencies run: pnpm i --filter="!./apps/**" - name: Lint affected libraries id: lint-libs - run: pnpm lint --continue --filter="!./apps/**" --filter="!./tools/**" --filter="!ledger-live*...[${{ inputs.since_branch && format('origin/{0}', inputs.since_branch) || 'HEAD^1' }}]" --api="http://127.0.0.1:${{ steps.toolchain.outputs.port }}" --token="${{ secrets.TURBOREPO_SERVER_TOKEN }}" --team="foo" -- --quiet + run: pnpm lint --continue --filter="!./apps/**" --filter="!./tools/**" --filter="!ledger-live*...[${{ inputs.since_branch && format('origin/{0}', inputs.since_branch) || 'HEAD^1' }}]" --api="http://127.0.0.1:${{ steps.setup-caches.outputs.port }}" --token="${{ secrets.TURBOREPO_SERVER_TOKEN }}" --team="foo" -- --quiet - name: Typecheck affected libraries id: typecheck-libs - run: pnpm typecheck --continue --filter="!./apps/**" --filter="!./tools/**" --filter="!ledger-live*...[${{ inputs.since_branch && format('origin/{0}', inputs.since_branch) || 'HEAD^1' }}]" --api="http://127.0.0.1:${{ steps.toolchain.outputs.port }}" --token="${{ secrets.TURBOREPO_SERVER_TOKEN }}" --team="foo" + run: pnpm typecheck --continue --filter="!./apps/**" --filter="!./tools/**" --filter="!ledger-live*...[${{ inputs.since_branch && format('origin/{0}', inputs.since_branch) || 'HEAD^1' }}]" --api="http://127.0.0.1:${{ steps.setup-caches.outputs.port }}" --token="${{ secrets.TURBOREPO_SERVER_TOKEN }}" --team="foo" - name: Test unimported files id: unimported - run: pnpm unimported --continue --filter="!./apps/**" --filter="!./tools/**" --filter="!ledger-live*...[${{ inputs.since_branch && format('origin/{0}', inputs.since_branch) || 'HEAD^1' }}]" --api="http://127.0.0.1:${{ steps.toolchain.outputs.port }}" --token="${{ secrets.TURBOREPO_SERVER_TOKEN }}" --team="foo" + run: pnpm unimported --continue --filter="!./apps/**" --filter="!./tools/**" --filter="!ledger-live*...[${{ inputs.since_branch && format('origin/{0}', inputs.since_branch) || 'HEAD^1' }}]" --api="http://127.0.0.1:${{ steps.setup-caches.outputs.port }}" --token="${{ secrets.TURBOREPO_SERVER_TOKEN }}" --team="foo" shell: bash - uses: actions/github-script@v6 if: ${{ !cancelled() }} @@ -124,19 +124,19 @@ jobs: - uses: actions/checkout@v4 with: ref: ${{ inputs.ref || github.sha }} - - name: Setup the toolchain - uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop - id: toolchain + - name: Setup the caches + uses: LedgerHQ/ledger-live/tools/actions/composites/setup-caches@develop + id: setup-caches with: + skip-turbo-cache: "false" accountId: ${{ secrets.AWS_ACCOUNT_ID_PROD }} roleName: ${{ secrets.AWS_CACHE_ROLE_NAME }} region: ${{ secrets.AWS_CACHE_REGION }} turbo-server-token: ${{ secrets.TURBOREPO_SERVER_TOKEN }} - skip-turbo-cache: "false" - name: Install dependencies run: pnpm i --filter="!./apps/**" - name: run doc - run: pnpm doc:ljs --api="http://127.0.0.1:${{ steps.toolchain.outputs.port }}" --token="${{ secrets.TURBOREPO_SERVER_TOKEN }}" --team="foo" + run: pnpm doc:ljs --api="http://127.0.0.1:${{ steps.setup-caches.outputs.port }}" --token="${{ secrets.TURBOREPO_SERVER_TOKEN }}" --team="foo" - name: get diff id: diff run: |