From d675f825575c6705f71b3d59c23bf5d27d6821d1 Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Sun, 11 Jan 2026 20:10:22 -0300 Subject: [PATCH] chore: migrate e2e-atoms and nextjs-bundle-analysis to cache-checkout (#26713) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../actions/dangerous-git-checkout/action.yml | 20 ------------------- .github/workflows/e2e-atoms.yml | 4 +++- .github/workflows/nextjs-bundle-analysis.yml | 4 +++- 3 files changed, 6 insertions(+), 22 deletions(-) delete mode 100644 .github/actions/dangerous-git-checkout/action.yml diff --git a/.github/actions/dangerous-git-checkout/action.yml b/.github/actions/dangerous-git-checkout/action.yml deleted file mode 100644 index 5978988025..0000000000 --- a/.github/actions/dangerous-git-checkout/action.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Dangerous git Checkout -description: "Git Checkout from PR code so we can run checks from forks" -runs: - using: "composite" - steps: - - name: Checkout repo - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha }} - fetch-depth: 2 - sparse-checkout-cone-mode: false - sparse-checkout: | - /* - !/example-apps/ - !**/*.mp4 - !/docs/images/ - !packages/app-store/*/static/*.png - !packages/app-store/*/static/*.jpg - !packages/app-store/*/static/*.jpeg - !packages/app-store/*/static/*.gif diff --git a/.github/workflows/e2e-atoms.yml b/.github/workflows/e2e-atoms.yml index 38b4bbe289..90485e8539 100644 --- a/.github/workflows/e2e-atoms.yml +++ b/.github/workflows/e2e-atoms.yml @@ -29,7 +29,9 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - uses: actions/checkout@v4 - - uses: ./.github/actions/dangerous-git-checkout + with: + sparse-checkout: .github + - uses: ./.github/actions/cache-checkout - uses: ./.github/actions/yarn-install - uses: ./.github/actions/yarn-playwright-install - name: Run E2E Atoms Tests diff --git a/.github/workflows/nextjs-bundle-analysis.yml b/.github/workflows/nextjs-bundle-analysis.yml index c796c9f684..d79c6bf2c2 100644 --- a/.github/workflows/nextjs-bundle-analysis.yml +++ b/.github/workflows/nextjs-bundle-analysis.yml @@ -53,7 +53,9 @@ jobs: timeout-minutes: 30 steps: - uses: actions/checkout@v4 - - uses: ./.github/actions/dangerous-git-checkout + with: + sparse-checkout: .github + - uses: ./.github/actions/cache-checkout - uses: ./.github/actions/yarn-install - run: yarn prisma generate - uses: ./.github/actions/cache-build