mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-28 23:52:17 +01:00
* add pnpm * make it work * fix comamnds in package.jsons * move some scripts to modules * workflow fixes * test workflow * test #2 * minor fix * update lockflite * create workflows * update workflow * Add copy license command * Fix build * update workflows * update contributions.md * migrate site directory to pnpm * Fix peer dependencies when install * fix types in lucide-angular * fix testing
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
name: Lucide React Native checks
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- packages/lucide-react-native/**
|
|
push:
|
|
paths:
|
|
- packages/lucide-react-native/**
|
|
|
|
jobs:
|
|
lucide-react-native:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v3.4.1
|
|
with:
|
|
node-version: 16
|
|
|
|
- uses: pnpm/action-setup@v2.0.1
|
|
name: Install pnpm
|
|
id: pnpm-install
|
|
with:
|
|
version: 7
|
|
run_install: false
|
|
|
|
- name: Get pnpm store directory
|
|
id: pnpm-cache
|
|
run: |
|
|
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
|
|
|
|
- uses: actions/cache@v3
|
|
name: Setup pnpm cache
|
|
with:
|
|
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
|
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pnpm-store-
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Build
|
|
run: pnpm --filter lucide-react-native build
|
|
|
|
- name: Test
|
|
run: pnpm --filter lucide-react-native test
|
|
|