Skip to content

refactor: rename pointer-down state APIs #2

refactor: rename pointer-down state APIs

refactor: rename pointer-down state APIs #2

Workflow file for this run

name: logseq/db CI
on:
# Path filters ensure jobs only kick off if a change is made to db
push:
branches: [master]
paths:
- 'deps/db/**'
- '.github/workflows/deps-db.yml'
- '!deps/db/**.md'
# Deps that logseq/db depends on should trigger this workflow
- 'deps/common/**'
pull_request:
branches: [master]
paths:
- 'deps/db/**'
- '.github/workflows/deps-db.yml'
- '!deps/db/**.md'
# Deps that logseq/db depends on should trigger this workflow
- 'deps/common/**'
defaults:
run:
working-directory: deps/db
env:
CLOJURE_VERSION: '1.12.4.1618'
JAVA_VERSION: '21'
# This is the latest node version we can run.
NODE_VERSION: '24'
BABASHKA_VERSION: '1.12.215'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 10.33.0
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
cache-dependency-path: deps/db/pnpm-lock.yaml
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ env.JAVA_VERSION }}
- name: Set up Clojure
uses: DeLaGuardo/setup-clojure@13.5
with:
cli: ${{ env.CLOJURE_VERSION }}
bb: ${{ env.BABASHKA_VERSION }}
- name: Fetch pnpm deps
run: pnpm install --frozen-lockfile
- name: Run nbb-logseq tests
run: pnpm test
# In this job because it depends on an npm package
- name: Load namespaces into nbb-logseq
run: bb test:load-all-namespaces-with-nbb .
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ env.JAVA_VERSION }}
- name: Set up Clojure
uses: DeLaGuardo/setup-clojure@13.5
with:
cli: ${{ env.CLOJURE_VERSION }}
bb: ${{ env.BABASHKA_VERSION }}
- name: Run clj-kondo lint
run: clojure -M:clj-kondo --lint src test
- name: Carve lint for unused vars
run: bb lint:carve
- name: Lint for vars that are too large
run: bb lint:large-vars
- name: Lint datalog rules
run: bb lint:rules
- name: Lint for namespaces that aren't documented
run: bb lint:ns-docstrings