mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Add shared core package and query cache
Core holds the keys of the data both apps read and maps a node's ref updates to the keys they affect. The query cache wraps TanStack Query for runes, as decided in ADRs 4 and 5.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
name: shared-core
|
||||
# Only shared/core changes, root npm changes, or changes to this workflow, run it.
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "shared/core/**"
|
||||
- "package.json"
|
||||
- "package-lock.json"
|
||||
- ".npmrc"
|
||||
- ".nvmrc"
|
||||
- ".github/workflows/shared-core.yml"
|
||||
push:
|
||||
paths:
|
||||
- "shared/core/**"
|
||||
- "package.json"
|
||||
- "package-lock.json"
|
||||
- ".npmrc"
|
||||
- ".nvmrc"
|
||||
- ".github/workflows/shared-core.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: shared/core
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
- run: npm ci
|
||||
- run: npm run check
|
||||
- run: npm run test:unit
|
||||
Reference in New Issue
Block a user