Skip to content

philiplehmann/minio-cache

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

Repository files navigation

minio-cache

This action allows to cache your dependencies stored in Minio (or other S3 compatible source).

Self-hosted runners supported

Usage

  1. Instal and run https://min.io server

  2. Create .github/workflows/my-cachable-workflow.yml file

name: yarn cache

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]
  workflow_dispatch:

jobs:
  dependencies:
    runs-on: [ubuntu-latest]
    steps:
      - uses: actions/checkout@v4

      - name: Restore yarn cache
        id: cache
        uses: philiplehmann/minio-cache
        with:
          endpoint: "192.168.1.63" # optional, default s3.amazonaws.com
          port: 9000 # minio port
          insecure: true # optional, use http instead of https. default false
          accessKey: "minioadmin" # required
          secretKey: "minioadmin" # required
          bucket: "bucket-name" # required
          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
          path: |
            node_modules
            ~/node_modules

      - name: Yarn install
        if: steps.cache.outputs.cache-hit != 'true'
        run: yarn install

      - name: Check that dependency installed
        run: yarn ts-jest -v

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%