38 lines
928 B
YAML
38 lines
928 B
YAML
name: Setup
|
|
description: Checkout code, restore caches, and install pnpm dependencies
|
|
inputs:
|
|
token:
|
|
required: true
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: 📑 Checkout Code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ inputs.token }}
|
|
|
|
- name: 💾 Setup pnpm Cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: .pnpm-store
|
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pnpm-
|
|
|
|
- name: 🦀 Cache Cargo
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cargo/registry
|
|
~/.cargo/git
|
|
target
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-cargo-
|
|
|
|
- name: 📦 Install Dependencies
|
|
shell: bash
|
|
run: pnpm install --frozen-lockfile --store-dir .pnpm-store
|