mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-11 14:22:51 +00:00
flake
This commit is contained in:
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