Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/js-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Run JS unit tests

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: ["main"]
pull_request:
paths:
- "js-applet/**" # js/ts code + its tests
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
js-tests:
# The type of runner that the job will run on
runs-on: ubuntu-latest

defaults:
run:
working-directory: js-applet

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Patch eMudhra CA compromise (CVE-2026-111943)
shell: bash
working-directory: .
run: |
sudo apt-get update
sudo apt-get install --only-upgrade -y ca-certificates
sudo update-ca-certificates --fresh

- name: Set up Node
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .nvmrc
cache: yarn
cache-dependency-path: js-applet/yarn.lock

- name: Install dependencies
run: yarn

- name: Run tests
run: yarn test
12 changes: 6 additions & 6 deletions js-applet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
},
"dependencies": {
"@anywidget/react": "^0.2.2",
"@neo4j-ndl/base": "4.21.1",
"@neo4j-ndl/react": "4.22.1",
"@neo4j-ndl/react-graph": "2.1.23",
"@neo4j-nvl/base": "^1.2.2",
"@neo4j-nvl/interaction-handlers": "^1.2.2",
"@neo4j-nvl/react": "^1.2.2",
"@neo4j-ndl/base": "5.1.0",
"@neo4j-ndl/react": "5.1.1",
"@neo4j-ndl/react-graph": "3.0.3",
"@neo4j-nvl/base": "^2.0.0",
"@neo4j-nvl/interaction-handlers": "^2.0.0",
"@neo4j-nvl/react": "^2.0.0",
"@tanstack/react-table": "^8.21.3",
"react": "^19.3.0",
"react-dom": "^19.3.0"
Expand Down
Loading
Loading