Skip to content
Closed
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
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# default owner unless a later match takes precedence

* @knime/ap-next
42 changes: 42 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "npm"
directory: "/org.knime.ui.js/"
schedule:
interval: "weekly"
day: "sunday"
time: "18:00"
cooldown:
default-days: 5
exclude:
- "@knime/*"
groups:
knimeKds:
patterns:
- "@knime/kds-*"
vueuse:
patterns:
- "*vueuse*"
vitest:
patterns:
- "*vitest*"
jsonforms:
patterns:
- "@jsonforms/*"
tiptap:
patterns:
- "@tiptap/*"
typescriptEslint:
patterns:
- "@typescript-eslint/*"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
time: "18:00"
cooldown:
default-days: 5
97 changes: 97 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: CI

on:
pull_request:
push:
branches:
- master
- "releases/**"

jobs:
lint-test-build:
permissions:
contents: read
runs-on: ubuntu-8c-32gb

defaults:
run:
working-directory: org.knime.ui.js

steps:
- uses: actions/checkout@v5
# Sonar runs in Jenkins for the whole repo due to the mix of Java and JS
# with:
# fetch-depth: 0 # full history for SonarCloud
- uses: pnpm/action-setup@v4
with:
package_json_file: org.knime.ui.js/package.json
- name: Install Node.js
uses: actions/setup-node@v6
with:
cache-dependency-path: org.knime.ui.js/pnpm-lock.yaml
node-version-file: "org.knime.ui.js/package.json"
cache: "pnpm"
- name: Install dependencies
run: pnpm install

- name: Lint and format
run: pnpm run ci:lint-format

- name: Type check
run: pnpm run type-check

- name: Run coverage
run: pnpm run coverage

- name: Build for CI
run: pnpm run build:ci

- name: Audit
run: pnpm run audit

# Sonar runs in Jenkins for the whole repo due to the mix of Java and JS
# - name: Sonar scan
# if: github.actor != 'dependabot[bot]'
# uses: SonarSource/sonarqube-scan-action@v6
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

e2e-tests:
runs-on: ubuntu-8c-32gb
defaults:
run:
working-directory: org.knime.ui.js
container:
image: mcr.microsoft.com/playwright:v1.51.1-noble
options: --user 1001

steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v4
with:
package_json_file: org.knime.ui.js/package.json

- name: Install Node.js
uses: actions/setup-node@v6
with:
cache-dependency-path: org.knime.ui.js/pnpm-lock.yaml
node-version-file: "org.knime.ui.js/package.json"
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Install Playwright browsers
run: pnpm exec playwright install

- name: Run e2e tests
run: pnpm run test:e2e

- name: Upload Playwright artifacts
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-artifacts
path: |
org.knime.ui.js/playwright-report/**
org.knime.ui.js/test-results/**
41 changes: 41 additions & 0 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Copilot Setup Steps"

# Automatically run the setup steps when they are changed to allow for easy validation, and
# allow manual testing through the repository's "Actions" tab
on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml

jobs:
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
copilot-setup-steps:
runs-on: ubuntu-latest
permissions:
contents: read

defaults:
run:
working-directory: org.knime.ui.js

steps:
- name: Checkout code
uses: actions/checkout@v5

- uses: pnpm/action-setup@v4
with:
package_json_file: org.knime.ui.js/package.json

- name: Install Node.js
uses: actions/setup-node@v6
with:
cache-dependency-path: org.knime.ui.js/pnpm-lock.yaml
node-version-file: "org.knime.ui.js/package.json"
cache: "pnpm"

- name: Install dependencies
run: pnpm install
6 changes: 6 additions & 0 deletions org.knime.dataapp.js/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
packages:
- "."

minimumReleaseAge: 1440
minimumReleaseAgeExclude:
- "@knime/*"
2 changes: 1 addition & 1 deletion org.knime.ui.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"@knime/eslint-config": "^9.0.2",
"@knime/licenses": "^1.3.2",
"@pinia/testing": "^0.1.7",
"@playwright/test": "^1.50.1",
"@playwright/test": "1.51.1",
"@tsconfig/node22": "^22.0.0",
"@types/jsdom": "^21.1.6",
"@types/kd-tree-javascript": "^1.0.3",
Expand Down
2 changes: 1 addition & 1 deletion org.knime.ui.js/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions org.knime.ui.js/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
packages:
- "."

minimumReleaseAge: 1440
minimumReleaseAgeExclude:
- "@knime/*"
11 changes: 11 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Sonarcloud organization and project
sonar.host.url=https://sonarcloud.io
sonar.organization=knime
sonar.projectKey=KNIME_knime-ui

# Source code inclusions/exclusions
sonar.sources=.
sonar.exclusions=node_modules/**,test-results/**,test-utils/**,*.log,pom.xml

# Test code inclusions/exclusions
sonar.test.inclusions=**/__tests__/**/*
Loading