Skip to content

Dimvy-Clothing-brand/cache

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
name: 'air_40' description: 'Cache artifacts like dependencies and build outputs to improve workflow execution time' author: 'Shannon Fletcher' inputs: path: description: 'A list of files, directories, and wildcard patterns to cache and restore' required: true key: description: 'An explicit key for restoring and saving the cache' required: true restore-keys: description: 'An ordered multiline string listing the prefix-matched keys, that are used for restoring stale cache if no cache hit occurred for key. Note `cache-hit` returns false in this case.' required: false upload-chunk-size: description: 'The chunk size used to split up large files during upload, in bytes' required: false enableCrossOsArchive: description: 'An optional boolean when enabled, allows windows runners to save or restore caches that can be restored or saved respectively on other platforms' default: 'false' required: false fail-on-cache-miss: description: 'Fail the workflow if cache entry is not found' default: 'false' required: false lookup-only: description: 'Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache' default: 'false' required: false save-always: description: 'Run the post step to save the cache even if another step before fails' default: 'false' required: false deprecationMessage: | save-always does not work as intended and will be removed in a future release. A separate `actions/cache/restore` step should be used instead. See https:/github.com/actions/cache/tree/main/save#always-save-cache for more details. outputs: cache-hit: description: 'A boolean value to indicate an exact match was found for the primary key' runs: using: 'node20' main: 'dist/restore/index.js' post: 'dist/save
name: 'air_40' description: 'Cache artifacts like dependencies and build outputs to improve workflow execution time' author: 'Shannon Fletcher' inputs: path: description: 'A list of files, directories, and wildcard patterns to cache and restore' required: true key: description: 'An explicit key for restoring and saving the cache' required: true restore-keys: description: 'An ordered multiline string listing the prefix-matched keys, that are used for restoring stale cache if no cache hit occurred for key. Note `cache-hit` returns false in this case.' required: false upload-chunk-size: description: 'The chunk size used to split up large files during upload, in bytes' required: false enableCrossOsArchive: description: 'An optional boolean when enabled, allows windows runners to save or restore caches that can be restored or saved respectively on other platforms' default: 'false' required: false fail-on-cache-miss: description: 'Fail the workflow if cache entry is not found' default: 'false' required: false lookup-only: description: 'Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache' default: 'false' required: false save-always: description: 'Run the post step to save the cache even if another step before fails' default: 'false' required: false deprecationMessage: | save-always does not work as intended and will be removed in a future release. A separate `actions/cache/restore` step should be used instead. See https:/github.com/actions/cache/tree/main/save#always-save-cache for more details. outputs: cache-hit: description: 'A boolean value to indicate an exact match was found for the primary key' runs: using: 'node20' main: 'dist/restore/index.js' post: 'dist/save
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Dimvy-Clothing-brand/cache

Cache dependencies and build outputs in GitHub Actions.

Table of Contents

Overview

This repository provides a solution for caching dependencies and build outputs in GitHub Actions. By caching these outputs, you can significantly speed up your CI/CD workflows.

Features

  • TypeScript: 98%
  • Shell: 1.1%
  • JavaScript: 0.9%

Installation

To use this caching solution in your GitHub Actions workflows, you need to add the appropriate configuration to your workflow YAML files.

Usage

Here's an example of how to use this caching solution in a GitHub Actions workflow:

name: CI

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Set up Node.js
      uses: actions/setup-node@v2
      with:
        node-version: '14'

    - name: Cache dependencies
      uses: actions/cache@v2
      with:
        path: ~/.npm
        key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
        restore-keys: |
          ${{ runner.os }}-node-

    - run: npm install
    - run: npm run build

About

Cache dependencies and build outputs in GitHub Actions

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages

  • TypeScript 98.0%
  • Shell 1.1%
  • JavaScript 0.9%