-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
60 lines (50 loc) · 1.53 KB
/
action.yml
File metadata and controls
60 lines (50 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: 🕋 Setup Monorepo
description: |
Nx monorepo setup with pnpm, node, and cache management
(requires checkout first)
runs:
using: composite
steps:
- name: 📦 Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.30.3
- name: 🟢 Setup node
uses: actions/setup-node@v4
with:
node-version: 22.22.2
cache: pnpm
- name: 🎯 Set Nx SHAs
uses: nrwl/nx-set-shas@v4
- name: 🗃️ Configure Nx Cache
run: |
echo "NX_DEFAULT_OUTPUT_STYLE=static" >> $GITHUB_ENV
shell: bash
- name: 🔧 Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: 📄 Install yamllint
run: brew install yamllint --quiet
shell: bash
- name: ♻️ Sync Nx Cache
uses: actions/cache@v4
with:
path: .nx/cache
key: |
nx-cache-${{ runner.os }}-${{ hashFiles(
'**/pnpm-lock.yaml') }}-${{ github.sha }}
restore-keys: |
nx-cache-${{ runner.os }}-${{ hashFiles(
'**/pnpm-lock.yaml') }}-
nx-cache-${{ runner.os }}-
- name: 🌌 Setup uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
add-problem-matchers: "false"
- name: 🐍 Install Python Dependencies
run: uv sync --frozen --quiet --project applications/affirmations
shell: bash
- name: 📚 Install Node Dependencies
run: pnpm install --frozen-lockfile --reporter=silent
shell: bash