Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reintroduce caching in CI builds #4418

Closed
pepopowitz opened this issue Oct 7, 2024 · 0 comments · Fixed by #4436
Closed

reintroduce caching in CI builds #4418

pepopowitz opened this issue Oct 7, 2024 · 0 comments · Fixed by #4436
Assignees
Labels
dx Documentation infrastructure typically handled by the Camunda DX team theme:performance Issues related to improving performance.

Comments

@pepopowitz
Copy link
Collaborator

In #4417, we removed the docuactions/cache action from our preview-env-deploy.yaml workflow, because the organization left GitHub.

We should reintroduce caching into all of our CI build workflows, based instead on local code.

I tracked what I think is a fork to https://github.com/tats-u/docuactions-cache/blob/main/action.yml. The contents look pretty straightforward, I'm capturing here in case they eventually disappear too:

name: "Docusaurus Cache"
description: "Cache Docusaurus for faster application rebuilds."
author: "docuactions"

runs:
  using: "composite"
  steps:
    - uses: actions/cache@v4
      with:
        path: |
          ${{ github.workspace }}/.docusaurus
          ${{ github.workspace }}/**/.cache
        key: |
          ${{ runner.os }}-docusaurus-${{ hashFiles('**/package-lock.json', '**/npm-shrinkwrap.json', '**/yarn.lock', '**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
        restore-keys: |
          ${{ runner.os }}-docusaurus-${{ hashFiles('**/package-lock.json', '**/npm-shrinkwrap.json', '**/yarn.lock', '**/pnpm-lock.yaml') }}
branding:
  icon: "archive"
  color: "green"

The cached paths align with the recommendations in the Docusaurus discord, so even if this isn't a fork of the original action, it is a worthy source.

@pepopowitz pepopowitz added dx Documentation infrastructure typically handled by the Camunda DX team theme:performance Issues related to improving performance. labels Oct 7, 2024
@pepopowitz pepopowitz self-assigned this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx Documentation infrastructure typically handled by the Camunda DX team theme:performance Issues related to improving performance.
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

1 participant