Files
github-actions-magento2/cache-magento
Damien Retzinger 2d7238de14 feat(cache-magento): include runner.os in the cache key (#245)
Composer's download cache contains platform-specific binaries and
extracted archives that aren't safe to share across operating
systems. Add the runner OS as a key segment so a Linux job won't
restore a macOS-built cache (or vice versa).
2026-05-09 15:47:51 -04:00
..

Cache Magento Action

A Github Action that creates a composer cache for a Magento extension or store.

Inputs

See the action.yml

Input Description Required Default
composer_cache_key A key to version the composer cache. Can be incremented if you need to bust the cache. false '__mageos'

Usage

name: Magento Cache

on:
  push:
    branches:
    - main
  pull_request:
    branches:
    - main

jobs:
  showcase_cache:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v6
    - uses: graycoreio/github-actions-magento2/cache-magento@main
      id: cache-magento

    - run: composer install
      shell: bash
      name: Composer install