mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-11 06:12:51 +00:00
flake
This commit is contained in:
21
.github/actions/setup/action.yml
vendored
21
.github/actions/setup/action.yml
vendored
@@ -1,21 +0,0 @@
|
||||
name: Setup
|
||||
description: Perform standard setup and install dependencies using pnpm.
|
||||
inputs:
|
||||
node-version:
|
||||
description: The version of Node.js to install
|
||||
required: true
|
||||
default: 24.5.0
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v3
|
||||
- name: Install node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
cache: pnpm
|
||||
node-version: ${{ inputs.node-version }}
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
run: pnpm install
|
||||
29
.github/workflows/check.yml
vendored
29
.github/workflows/check.yml
vendored
@@ -20,8 +20,35 @@ jobs:
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Cache Nix Store
|
||||
uses: nix-community/cache-nix-action@main
|
||||
with:
|
||||
primary-key: ${{ runner.os }}-nix-${{ hashFiles('flake.lock') }}
|
||||
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@main
|
||||
|
||||
- name: Load devShell environment
|
||||
uses: nicknovitski/nix-develop@main
|
||||
with:
|
||||
arguments: .#android-remote
|
||||
|
||||
- name: Get pnpm store directory
|
||||
shell: bash
|
||||
run: |
|
||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
||||
|
||||
- uses: actions/cache@v3
|
||||
name: Setup pnpm cache
|
||||
with:
|
||||
path: ${{ env.STORE_PATH }}
|
||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-store-
|
||||
|
||||
- name: Install dependencies
|
||||
uses: ./.github/actions/setup
|
||||
run: pnpm install
|
||||
- run: pnpm exec turbo lint:check
|
||||
|
||||
# test:
|
||||
|
||||
Reference in New Issue
Block a user