No description
Find a file
Nodoubtz a963a4573a
Update action.yml to enhance cache management and improve workflow execution
- Updated descriptions for better clarity on cache management.
- Added new input parameters: `fail-on-cache-miss`, `lookup-only`, and `save-always`.
- Included deprecation message for `save-always` input, indicating future removal.
- Adjusted default values for `enableCrossOsArchive` and other parameters.
- Enhanced output descriptions to provide more detailed information on cache hits and keys.

This update aims to streamline the caching process and provide better control over workflow execution.
2025-04-04 13:51:15 -04:00
- name: Cache uses: actions Fix errors and enhance security 2025-03-29 18:08:33 -04:00
.devcontainer GA for granular cache (#1035) 2022-12-21 19:38:44 +05:30
.github Update release-new-action-version.yml 2025-03-29 17:59:39 -04:00
.licenses Update to use the latest version of the cache package to obfuscate the SAS 2025-03-18 07:58:36 -07:00
.vscode Initial commit 2019-10-30 14:48:49 -04:00
__tests__ added unit tests 2024-10-18 17:22:08 +00:00
dist Update to use the latest version of the cache package to obfuscate the SAS 2025-03-18 07:58:36 -07:00
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 Update action.yml to enhance cache management and improve workflow execution 2025-04-04 13:51:15 -04:00
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('** Fix errors and enhance security 2025-03-29 17:52:12 -04:00
restore Merge branch 'main' into todgru/v4-documentation-update 2024-08-14 12:09:56 +02:00
save docs: Make the "always save prime numbers" example more clear (#1525) 2025-01-09 23:36:56 +00:00
src appease the linter 2024-10-18 13:52:16 +00:00
.eslintrc.json Update eslint and prettier 2022-01-31 12:55:11 +05:30
.gitattributes Fix line ending for windows test 2022-01-31 13:00:27 +05:30
.gitignore test e2e during workflow (#185) 2020-02-13 12:38:56 -05:00
.licensed.yml Add licensed output 2024-12-04 13:44:43 -08:00
.prettierrc.json Initial commit 2019-10-30 14:48:49 -04:00
action.yml Update action.yml 2025-03-29 17:43:06 -04:00
bquxjob_110c1a0c_195e84a97dd.json Add files via upload 2025-03-30 14:24:25 -04:00
caching-strategies.md Correct GitHub Spelling in caching-strategies.md (#1526) 2025-01-06 16:55:00 +00:00
cloudbuild.yaml.txt Add files via upload 2025-03-29 17:08:39 -04:00
CODE_OF_CONDUCT.md Fix repo name in contact email (#41) 2019-11-03 09:38:45 -05:00
CONTRIBUTING.md Update contributing.md 2020-09-23 17:07:50 -04:00
examples.md Add Bun example (#1456) 2024-10-08 19:53:09 +00:00
jest.config.js Resolve dependabot alerts 2022-01-31 12:06:04 +05:30
LICENSE Update LICENSE 2025-03-24 18:54:44 -04:00
package-lock.json Update to use the latest version of the cache package to obfuscate the SAS 2025-03-18 07:58:36 -07:00
package.json Update to use the latest version of the cache package to obfuscate the SAS 2025-03-18 07:58:36 -07:00
README.md Update README.md 2025-03-28 16:42:26 -04:00
RELEASES.md Update releases.md 2025-03-18 08:00:50 -07:00
tips-and-workarounds.md Update force deletion docs due a recent deprecation (#1500) 2025-02-12 10:49:34 -05:00
tsconfig.json Initial commit 2019-10-30 14:48:49 -04:00
Windy Create Windy 2025-03-18 12:55:16 -04:00

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